Skip to content

Commit

Permalink
Autocommit: Build state toggled to FAIL
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesshore committed May 20, 2012
1 parent 3a53560 commit 994d323
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions test/lint_runner.js
Expand Up @@ -144,9 +144,31 @@ describe("File list validation", function() {
expect(lint.validateFileList(testFiles)).to.be(false);
});

it("should report filenames");
it("should report filenames", function() {
inspectConsole(function(output) {
writeTestFiles("var a=1;", "var b=1;", "var c=1;");
lint.validateFileList(testFiles);
expect(output).to.eql([
testFiles[0] + " ok",
testFiles[1] + " ok",
testFiles[2] + " ok"
]);
});
});

it("should validate later files even if early file fails");
it("should validate later files even if early file fails", function() {
inspectConsole(function(output) {
writeTestFiles("var a=1", "var b=1;", "var c=1;");
lint.validateFileList(testFiles);
expect(output).to.eql([
testFiles[0] + " failed",
"1: var a=1",
" Missing semicolon.",
testFiles[1] + " ok",
testFiles[2] + " ok"
]);
});
});
});

describe("Error reporting", function() {
Expand Down

0 comments on commit 994d323

Please sign in to comment.