From cc458f49d6bec2f3dd4597f89fd16a7804b5ea30 Mon Sep 17 00:00:00 2001 From: Teddy Katz Date: Sun, 23 Sep 2018 19:05:45 -0400 Subject: [PATCH] Build: fix failing tests on master (#10890) This updates some failing tests to account for an error message change in the `ajv` dependency. --- tests/lib/config/config-validator.js | 2 +- tests/lib/testers/rule-tester.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib/config/config-validator.js b/tests/lib/config/config-validator.js index 456b1518364..b4cb2e41d8d 100644 --- a/tests/lib/config/config-validator.js +++ b/tests/lib/config/config-validator.js @@ -342,7 +342,7 @@ describe("Validator", () => { it("should throw if override has an empty files array", () => { const fn = validator.validate.bind(null, { overrides: [{ files: [] }] }, "tests", ruleMapper, linter.environments); - assert.throws(fn, "ESLint configuration in tests is invalid:\n\t- Property \"overrides[0].files\" is the wrong type (expected string but got `[]`).\n\t- \"overrides[0].files\" should NOT have less than 1 items. Value: [].\n\t- \"overrides[0].files\" should match exactly one schema in oneOf. Value: [].\n"); + assert.throws(fn, "ESLint configuration in tests is invalid:\n\t- Property \"overrides[0].files\" is the wrong type (expected string but got `[]`).\n\t- \"overrides[0].files\" should NOT have fewer than 1 items. Value: [].\n\t- \"overrides[0].files\" should match exactly one schema in oneOf. Value: [].\n"); }); it("should throw if override has nested overrides", () => { diff --git a/tests/lib/testers/rule-tester.js b/tests/lib/testers/rule-tester.js index 4a860890605..5a582f97678 100644 --- a/tests/lib/testers/rule-tester.js +++ b/tests/lib/testers/rule-tester.js @@ -640,7 +640,7 @@ describe("RuleTester", () => { { code: "var answer = 6 * 7;", options: ["bar"], errors: [{ message: "Expected nothing." }] } ] }); - }, "Schema for rule no-invalid-schema is invalid:,\titems: should be object\n\titems[0].enum: should NOT have less than 1 items\n\titems: should match some schema in anyOf"); + }, "Schema for rule no-invalid-schema is invalid:,\titems: should be object\n\titems[0].enum: should NOT have fewer than 1 items\n\titems: should match some schema in anyOf"); });