Skip to content

Instantly share code, notes, and snippets.

@sdepold
Created June 29, 2012 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sdepold/3017220 to your computer and use it in GitHub Desktop.
Save sdepold/3017220 to your computer and use it in GitHub Desktop.
equality check for arrays with prototype 1.6
var config = module.exports
config["node tests"] = {
tests: [
"*.spec.js"
],
environment: "node"
}
config["browser tests"] = {
tests: [
"*.spec.js"
],
environment: 'browser',
libs: [
"prototype.js"
]
}
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])
})
})
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