mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-26 04:57:50 +02:00
misc(plugin-docs): fix Windows test snapshot for git history retrieval (#5905)
* misc(plugin-docs): fix test snapshot * Fix again
This commit is contained in:
parent
334b4397e7
commit
a835c9bc48
2 changed files with 5 additions and 3 deletions
|
@ -40,7 +40,7 @@ describe('lastUpdate', () => {
|
|||
expect(await getFileLastUpdate(nonExistingFilePath)).toBeNull();
|
||||
expect(consoleMock).toHaveBeenCalledTimes(1);
|
||||
expect(consoleMock.mock.calls[0][0].message).toContain(
|
||||
`fatal: ambiguous argument '${nonExistingFilePath}': unknown revision or path not in the working tree.`,
|
||||
' with exit code 128',
|
||||
);
|
||||
expect(await getFileLastUpdate(null)).toBeNull();
|
||||
expect(await getFileLastUpdate(undefined)).toBeNull();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue