Skip to content

Commit 95da35c

Browse files
test: single test error (#936)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent d3dc263 commit 95da35c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/generateWithTZ.spec.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ describe('dayjs: getNow', () => {
3838
const M_now = moment().tz(JP);
3939

4040
expect(D_now.format()).toEqual(M_now.format());
41-
expect(D_now.get('hour') - D_now.utc().get('hour')).toEqual(9);
41+
42+
const expectedOffset = M_now.utcOffset();
43+
const actualOffset = D_now.utcOffset();
44+
expect(actualOffset).toEqual(expectedOffset);
4245
});
4346
});

0 commit comments

Comments
 (0)