Skip to content

Commit

Permalink
Chore: Incorrect source code test text (#8096)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfo84 authored and alberto committed Feb 18, 2017
1 parent 14d146d commit ff066dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/lib/util/source-code.js
Expand Up @@ -77,15 +77,15 @@ describe("SourceCode", () => {

});

it("should throw an error when called with an AST that's missing comments", () => {
it("should throw an error when called with an AST that's missing location", () => {

assert.throws(() => {
new SourceCode("foo;", { comments: [], tokens: [], range: [] });
}, /missing location information/);

});

it("should throw an error when called with an AST that's missing comments", () => {
it("should throw an error when called with an AST that's missing range", () => {

assert.throws(() => {
new SourceCode("foo;", { comments: [], tokens: [], loc: {} });
Expand Down

0 comments on commit ff066dc

Please sign in to comment.