Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Leaner, healthier development - no cake, no build
- Loading branch information
1 parent
bd949b7
commit edb4cc4
Showing
27 changed files
with
205 additions
and
867 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ node_js: | |
- 0.10 | ||
before_script: | ||
- phantomjs --version | ||
script: cake test | ||
script: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,34 @@ | ||
// Generated by CoffeeScript 1.6.3 | ||
(function() { | ||
var expect; | ||
expect = (chai && chai.expect) || require('chai').expect; | ||
|
||
expect = (typeof chai !== "undefined" && chai !== null ? chai.expect : void 0) || require('chai').expect; | ||
describe('Async Tests Failing', function() { | ||
it('passes 1', function() { | ||
expect(1).to.be.ok; | ||
}); | ||
it('passes 2', function() { | ||
expect(2).to.be.ok; | ||
}); | ||
it('passes 3', function() { | ||
expect(3).to.be.ok; | ||
}); | ||
|
||
describe('Async Tests Failing', function() { | ||
it('passes 1', function() { | ||
return expect(1).to.be.ok; | ||
}); | ||
it('passes 2', function() { | ||
return expect(2).to.be.ok; | ||
}); | ||
it('passes 3', function() { | ||
return expect(3).to.be.ok; | ||
}); | ||
it('fails 1', function(done) { | ||
var test; | ||
test = function() { | ||
expect(false).to.be["true"]; | ||
return done(); | ||
}; | ||
return setTimeout(test, 0); | ||
}); | ||
it('fails 2', function(done) { | ||
var test; | ||
test = function() { | ||
expect(false).to.be["true"]; | ||
return done(); | ||
}; | ||
return setTimeout(test, 0); | ||
}); | ||
return it('fails 3', function(done) { | ||
var test; | ||
test = function() { | ||
expect('false').to.equal('true'); | ||
return done(); | ||
}; | ||
return setTimeout(test, 0); | ||
}); | ||
it('fails 1', function(done) { | ||
setTimeout(function() { | ||
expect(false).to.be.true; | ||
done(); | ||
}, 0); | ||
}); | ||
|
||
}).call(this); | ||
it('fails 2', function(done) { | ||
setTimeout(function() { | ||
expect(false).to.be.true; | ||
done(); | ||
}, 0); | ||
}); | ||
|
||
it('fails 3', function(done) { | ||
setTimeout(function() { | ||
expect('false').to.equal('true'); | ||
done(); | ||
}, 0); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
// Generated by CoffeeScript 1.6.3 | ||
(function() { | ||
var expect; | ||
expect = (chai && chai.expect) || require('chai').expect; | ||
|
||
expect = (typeof chai !== "undefined" && chai !== null ? chai.expect : void 0) || require('chai').expect; | ||
describe('Tests Failing', function() { | ||
it('passes 1', function() { | ||
expect(1).to.be.ok; | ||
}); | ||
|
||
it('passes 2', function() { | ||
expect(2).to.be.ok; | ||
}); | ||
|
||
it('passes 3', function() { | ||
expect(3).to.be.ok; | ||
}); | ||
|
||
it('fails 1', function() { | ||
expect(false).to.be["true"]; | ||
}); | ||
|
||
describe('Tests Failing', function() { | ||
it('passes 1', function() { | ||
return expect(1).to.be.ok; | ||
}); | ||
it('passes 2', function() { | ||
return expect(2).to.be.ok; | ||
}); | ||
it('passes 3', function() { | ||
return expect(3).to.be.ok; | ||
}); | ||
it('fails 1', function() { | ||
return expect(false).to.be["true"]; | ||
}); | ||
it('fails 2', function() { | ||
return expect(false).to.be["true"]; | ||
}); | ||
return it('fails 3', function() { | ||
return expect('false').to.equal('true'); | ||
}); | ||
it('fails 2', function() { | ||
expect(false).to.be["true"]; | ||
}); | ||
|
||
}).call(this); | ||
it('fails 3', function() { | ||
expect('false').to.equal('true'); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,19 @@ | ||
// Generated by CoffeeScript 1.6.3 | ||
(function() { | ||
var expect; | ||
expect = (chai && chai.expect) || require('chai').expect; | ||
|
||
expect = (typeof chai !== "undefined" && chai !== null ? chai.expect : void 0) || require('chai').expect; | ||
|
||
describe('Many Tests', function() { | ||
var fail, n, skip, _i, _results; | ||
_results = []; | ||
for (n = _i = 1; _i <= 500; n = ++_i) { | ||
skip = n % 10 === 0; | ||
fail = n % 100 === 0; | ||
if (fail) { | ||
_results.push(it("fails " + n, function() { | ||
return expect(false).to.be["true"]; | ||
})); | ||
} else if (skip) { | ||
_results.push(it.skip("skips " + n, function() {})); | ||
} else { | ||
_results.push(it("passes " + n, function() { | ||
return expect(n).to.equal(n); | ||
})); | ||
} | ||
describe('Many Tests', function() { | ||
for (var n = 1; n <= 500; n++) { | ||
if (n % 10 === 0) { | ||
xit('skips ' + n, function() { | ||
expect(false).to.be.true | ||
}) | ||
} else if (n % 100 === 2) { | ||
it('fails ' + n, function() { | ||
expect(false).to.be.true | ||
}) | ||
} else { | ||
it('passses ' + n, function() { | ||
expect(n).to.equal(n) | ||
}) | ||
} | ||
return _results; | ||
}); | ||
|
||
}).call(this); | ||
} | ||
}); |
Oops, something went wrong.
edb4cc4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love CoffeeScript, but I also think this is cleaner. I really liked how it removes the whole notion of a src directory and I really liked how you implemented the
npm test
. So 👍 is my vote.