Skip to content

Commit

Permalink
linting...
Browse files Browse the repository at this point in the history
  • Loading branch information
erindepew committed Jan 31, 2018
1 parent f217192 commit b802625
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions tests/lib/linter.js
Expand Up @@ -2115,21 +2115,21 @@ describe("Linter", () => {
});

it("should not ignore violation if block comment is not on a single line", () => {
const code = [
"/* eslint-disable-next-line",
"no-alert */alert('test');"
].join("\n");
const config = {
rules: {
"no-alert": 1,
"no-console": 1
}
};
const messages = linter.verify(code, config, filename);

assert.strictEqual(messages.length, 1);
assert.strictEqual(messages[0].ruleId, "no-alert");
});
const code = [
"/* eslint-disable-next-line",
"no-alert */alert('test');"
].join("\n");
const config = {
rules: {
"no-alert": 1,
"no-console": 1
}
};
const messages = linter.verify(code, config, filename);

assert.strictEqual(messages.length, 1);
assert.strictEqual(messages[0].ruleId, "no-alert");
});

it("should ignore violations only of specified rule", () => {
const code = [
Expand Down

0 comments on commit b802625

Please sign in to comment.