Skip to content

Commit

Permalink
chore: fix .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr committed Sep 23, 2024
1 parent bdf0cb2 commit 1a2c282
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"jest/expect-expect": 0,
"jest/no-done-callback": 0,
"jest/no-identical-title": 0,
"jest/no-conditional-expect": 0,


// Possible Errors
comma-dangle: [2, "always-multiline"],
Expand Down
4 changes: 4 additions & 0 deletions test/N3Parser-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1128,11 +1128,13 @@ describe('Parser', () => {
function tripleCallback(error, triple) {
expect(error).toBeFalsy();
if (!triple) {
/* eslint-disable jest/no-conditional-expect */
expect(Object.keys(prefixes)).toHaveLength(2);
expect(prefixes).toHaveProperty('a');
expect(prefixes.a).toEqual(new NamedNode('http://a.org/#'));
expect(prefixes).toHaveProperty('b');
expect(prefixes.b).toEqual(new NamedNode('http://b.org/#'));
/* eslint-enable jest/no-conditional-expect */
done();
}
}
Expand Down Expand Up @@ -1167,6 +1169,7 @@ describe('Parser', () => {

function tripleCallback(error, triple, prefixes) {
expect(error).toBeFalsy();
/* eslint-disable jest/no-conditional-expect */
if (triple)
expect(prefixes).toBeFalsy();
else {
Expand All @@ -1176,6 +1179,7 @@ describe('Parser', () => {
expect(prefixes).toHaveProperty('b', 'http://example.org/IRIb');
done();
}
/* eslint-enable jest/no-conditional-expect */
}
});

Expand Down

0 comments on commit 1a2c282

Please sign in to comment.