We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 660386d commit cfb9d34Copy full SHA for cfb9d34
src/linter/tests/index.test.mjs
@@ -32,8 +32,11 @@ describe('createLinter', () => {
32
assert.strictEqual(rule1.mock.callCount(), 1);
33
assert.strictEqual(rule2.mock.callCount(), 1);
34
35
- // assert.deepEqual(rule1.mock.calls[0].arguments, [context]);
36
- // assert.deepEqual(rule2.mock.calls[0].arguments, [context]);
+ const rule1Context = rule1.mock.calls[0].arguments[0];
+ const rule2Context = rule2.mock.calls[0].arguments[0];
37
+
38
+ assert.strictEqual(rule1Context.tree, emptyTree);
39
+ assert.strictEqual(rule2Context.tree, emptyTree);
40
});
41
42
it('should return the aggregated issues from all rules', () => {
0 commit comments