refactor(content-docs): use shelljs instead of execa (#5904)

This commit is contained in:
Joshua Chen 2021-11-08 15:33:06 +08:00 committed by GitHub
parent 13d07eff13
commit 334b4397e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 15 deletions

View file

@ -40,7 +40,7 @@ describe('lastUpdate', () => {
expect(await getFileLastUpdate(nonExistingFilePath)).toBeNull();
expect(consoleMock).toHaveBeenCalledTimes(1);
expect(consoleMock.mock.calls[0][0].message).toContain(
`Command failed with exit code 128: git log -1 --format=%ct, %an ${nonExistingFileName}`,
`fatal: ambiguous argument '${nonExistingFilePath}': unknown revision or path not in the working tree.`,
);
expect(await getFileLastUpdate(null)).toBeNull();
expect(await getFileLastUpdate(undefined)).toBeNull();