Skip to content

Commit

Permalink
Fix tests to run using GMT TZ
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Brugger committed Aug 31, 2023
1 parent d781e1c commit ed5403d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/autocast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build": "parcel build",
"dev": "parcel watch",
"check": "tsc ./**/*.ts --noEmit --esModuleInterop",
"test": "jest ./**/*.spec.ts --config=../../jest.config.js --runInBand"
"test": "TZ=GMT jest ./**/*.spec.ts --config=../../jest.config.js --runInBand"
},
"keywords": [],
"author": "Alex Hollenbeck",
Expand Down
2 changes: 1 addition & 1 deletion plugins/autocast/src/autocast.plugin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('autocast plugin', () => {
describe.each(['1.1', 1.1])('should return a decimal', (num) => {
expect(castNumber(num)).toBe(1.1)
})
it('should return a number', () => {
it('string numbers with commas should return a number', () => {
expect(castNumber('1,100')).toBe(1100)
})
describe.each(TRUTHY_VALUES)('should return a truthy boolean', (truthy) => {
Expand Down

0 comments on commit ed5403d

Please sign in to comment.