Skip to content

Commit 12daf2b

Browse files
authored
Merge pull request #236 from lf-lang/dependabot/npm_and_yarn/all-dependencies-e8bb3d19bb
Bump the all-dependencies group with 11 updates
2 parents b5639a0 + b3efed6 commit 12daf2b

File tree

4 files changed

+518
-522
lines changed

4 files changed

+518
-522
lines changed

__tests__/time.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe("time helper functions", function () {
1515
// Non-zero time intervals.
1616
const fiveSeconds: TimeValue = TimeValue.withUnits(5, TimeUnit.sec);
1717
const fiveSFiveUS: TimeValue = TimeValue.withUnits(5000005, TimeUnit.usec);
18-
const fortyTwoDays: TimeValue = TimeValue.withUnits(42, TimeUnit.days);
18+
const fortyTwoDays: TimeValue = TimeValue.withUnits(42, TimeUnit.day);
1919
const threeHundredUS: TimeValue = TimeValue.withUnits(300, TimeUnit.usec);
2020
const sevenPointFiveBillNS: TimeValue = TimeValue.withUnits(
2121
7500000000,
@@ -178,7 +178,7 @@ describe("add time value", function () {
178178
// This test should generate an error because we're trying to convert
179179
// a number which can't be represented as a numeric time interval.
180180
expect(() => {
181-
TimeValue.withUnits(Number.MAX_SAFE_INTEGER, TimeUnit.weeks);
181+
TimeValue.withUnits(Number.MAX_SAFE_INTEGER, TimeUnit.week);
182182
}).toThrowError();
183183
});
184184

0 commit comments

Comments
 (0)