Created
June 29, 2012 10:36
-
-
Save sdepold/3017220 to your computer and use it in GitHub Desktop.
equality check for arrays with prototype 1.6
This file contains hidden or 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
var config = module.exports | |
config["node tests"] = { | |
tests: [ | |
"*.spec.js" | |
], | |
environment: "node" | |
} | |
config["browser tests"] = { | |
tests: [ | |
"*.spec.js" | |
], | |
environment: 'browser', | |
libs: [ | |
"prototype.js" | |
] | |
} |
This file contains hidden or 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
if(typeof require === 'function') { | |
var buster = require('buster') | |
} | |
buster.spec.expose() | |
describe('array test', function() { | |
it('equals arrays', function() { | |
expect([1,2]).toEqual([1,2]) | |
}) | |
}) |
This file contains hidden or 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
http://prototypejs.org/assets/2009/8/31/prototype.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment