Skip to content

Commit 2c4e3f4

Browse files
committed
Update tests to reflect different return for extract google sheet data
1 parent 764c207 commit 2c4e3f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/training-sheets/extract-google-sheet-data.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import pino from 'pino';
22
import * as O from 'fp-ts/Option';
33
import {extractGoogleSheetData} from '../../src/training-sheets/google';
44
import {UUID} from 'io-ts-types';
5+
import {getSomeOrFail} from '../helpers';
56

67
describe('extractGoogleSheetData', () => {
78
it('Extract google sheet data, missing columns', () => {
@@ -42,6 +43,6 @@ describe('extractGoogleSheetData', () => {
4243
],
4344
});
4445
// Check that no valid results are produced but that we don't error.
45-
expect(results).toHaveLength(0);
46+
expect(getSomeOrFail(results)).toHaveLength(0);
4647
});
4748
});

0 commit comments

Comments
 (0)