Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Remove coffeescript, point at compiled file
- Loading branch information
Showing
22 changed files
with
243 additions
and
1,226 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
Empty file.
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,2 +1 @@ | ||
module.exports = function(){ return "a real bear"; }; | ||
|
||
module.exports = function () { return 'a real bear' } |
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 +1 @@ | ||
module.exports = function(){ return "a real lion"; }; | ||
module.exports = function () { return 'a real lion' } |
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,11 +1,11 @@ | ||
var lion = require('./animals/lion'), | ||
bear = require('./animals/bear'); | ||
bear = require('./animals/bear') | ||
|
||
module.exports = function(){ | ||
module.exports = function () { | ||
return { | ||
animals: [ | ||
lion(), | ||
bear() | ||
] | ||
}; | ||
}; | ||
} | ||
} |
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,16 +1,16 @@ | ||
global.expect = require('chai').expect; | ||
global.context = describe; | ||
quibble = require('quibble'); | ||
global.expect = require('chai').expect | ||
global.context = describe | ||
quibble = require('quibble') | ||
|
||
beforeEach(function(){ | ||
beforeEach(function () { | ||
// Config a default response for quibbles (usually in a spec helper) | ||
quibble.config({ | ||
defaultFakeCreator: function(path) { | ||
return function() { return 'a fake animal' }; | ||
defaultFakeCreator: function (path) { | ||
return function () { return 'a fake animal' } | ||
} | ||
}); | ||
}); | ||
}) | ||
}) | ||
|
||
afterEach(function(){ | ||
quibble.reset(); | ||
}); | ||
afterEach(function () { | ||
quibble.reset() | ||
}) |
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,23 +1,22 @@ | ||
quibble = require('quibble'); | ||
quibble = require('quibble') | ||
|
||
require('../../lib/zoo'); //drop the zoo in the cache | ||
require('../../lib/zoo') // drop the zoo in the cache | ||
|
||
describe('zoo', function(){ | ||
var subject; | ||
describe('zoo', function () { | ||
var subject | ||
|
||
beforeEach(function(){ | ||
quibble('../../lib/animals/bear'); //return ->'a fake animal'; see helper.js | ||
quibble('../../lib/animals/lion', function(){ return 'a fake lion'}); | ||
beforeEach(function () { | ||
quibble('../../lib/animals/bear') // return ->'a fake animal'; see helper.js | ||
quibble('../../lib/animals/lion', function () { return 'a fake lion' }) | ||
|
||
subject = require('../../lib/zoo'); | ||
}); | ||
subject = require('../../lib/zoo') | ||
}) | ||
|
||
it('contains a fake animal', function() { | ||
expect(subject().animals).to.contain('a fake animal'); | ||
}); | ||
it('contains a fake animal', function () { | ||
expect(subject().animals).to.contain('a fake animal') | ||
}) | ||
|
||
it('contains a fake lion', function() { | ||
expect(subject().animals).to.contain('a fake lion'); | ||
}); | ||
|
||
}); | ||
it('contains a fake lion', function () { | ||
expect(subject().animals).to.contain('a fake lion') | ||
}) | ||
}) |
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,3 +1 @@ | ||
// lib is generated by coffee-script in src/. Generate lib from src changes with | ||
// $ npm run compile | ||
module.exports = require('./lib/quibble'); | ||
module.exports = require('./lib/quibble') |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.