Skip to content

Commit

Permalink
updating test.d.ts comments (#16207)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosrjjunior authored Jan 8, 2025
1 parent 72c9c2b commit 04b388e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/bun-types/test.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ declare module "bun:test" {
*
* @example
* const o = { a: 'foo', b: 'bar', c: 'baz' };
` * expect(o).toContainAnyValues(['qux', 'foo']);
* expect(o).toContainAnyValues(['qux', 'foo']);
* expect(o).toContainAnyValues(['qux', 'bar']);
* expect(o).toContainAnyValues(['qux', 'baz']);
* expect(o).not.toContainAnyValues(['qux']);
Expand All @@ -1060,6 +1060,8 @@ declare module "bun:test" {

/**
* Asserts that an `object` contains all the provided keys.
*
* @example
* expect({ a: 'foo', b: 'bar', c: 'baz' }).toContainKeys(['a', 'b']);
* expect({ a: 'foo', b: 'bar', c: 'baz' }).toContainKeys(['a', 'b', 'c']);
* expect({ a: 'foo', b: 'bar', c: 'baz' }).not.toContainKeys(['a', 'b', 'e']);
Expand Down

0 comments on commit 04b388e

Please sign in to comment.