Skip to content

Commit

Permalink
ensureNoDisposablesAreLeakedInTestSuite (#200115)
Browse files Browse the repository at this point in the history
* ensureNoDisposablesAreLeakedInTestSuite

* 💄
  • Loading branch information
benibenj authored Dec 6, 2023
1 parent 7ef3fef commit 52ca689
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@
"src/vs/base/test/common/naturalLanguage/korean.test.ts",
"src/vs/base/test/common/network.test.ts",
"src/vs/base/test/common/normalization.test.ts",
"src/vs/base/test/common/objects.test.ts",
"src/vs/base/test/common/observable.test.ts",
"src/vs/base/test/common/path.test.ts",
"src/vs/base/test/common/prefixTree.test.ts",
Expand Down
3 changes: 3 additions & 0 deletions src/vs/base/test/common/objects.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import * as assert from 'assert';
import * as objects from 'vs/base/common/objects';
import { ensureNoDisposablesAreLeakedInTestSuite } from 'vs/base/test/common/utils';

const check = (one: any, other: any, msg: string) => {
assert(objects.equals(one, other), msg);
Expand All @@ -17,6 +18,8 @@ const checkNot = (one: any, other: any, msg: string) => {

suite('Objects', () => {

ensureNoDisposablesAreLeakedInTestSuite();

test('equals', () => {
check(null, null, 'null');
check(undefined, undefined, 'undefined');
Expand Down

0 comments on commit 52ca689

Please sign in to comment.