Skip to content

Commit

Permalink
Merge pull request #236 from lf-lang/dependabot/npm_and_yarn/all-depe…
Browse files Browse the repository at this point in the history
…ndencies-e8bb3d19bb

Bump the all-dependencies group with 11 updates
  • Loading branch information
lhstrh authored Oct 15, 2023
2 parents b5639a0 + b3efed6 commit 12daf2b
Show file tree
Hide file tree
Showing 4 changed files with 518 additions and 522 deletions.
4 changes: 2 additions & 2 deletions __tests__/time.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("time helper functions", function () {
// Non-zero time intervals.
const fiveSeconds: TimeValue = TimeValue.withUnits(5, TimeUnit.sec);
const fiveSFiveUS: TimeValue = TimeValue.withUnits(5000005, TimeUnit.usec);
const fortyTwoDays: TimeValue = TimeValue.withUnits(42, TimeUnit.days);
const fortyTwoDays: TimeValue = TimeValue.withUnits(42, TimeUnit.day);
const threeHundredUS: TimeValue = TimeValue.withUnits(300, TimeUnit.usec);
const sevenPointFiveBillNS: TimeValue = TimeValue.withUnits(
7500000000,
Expand Down Expand Up @@ -178,7 +178,7 @@ describe("add time value", function () {
// This test should generate an error because we're trying to convert
// a number which can't be represented as a numeric time interval.
expect(() => {
TimeValue.withUnits(Number.MAX_SAFE_INTEGER, TimeUnit.weeks);
TimeValue.withUnits(Number.MAX_SAFE_INTEGER, TimeUnit.week);
}).toThrowError();
});

Expand Down
Loading

0 comments on commit 12daf2b

Please sign in to comment.