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
//= require ../collections/children.js | |
(function($){ | |
demo.models.Parent = Backbone.Model.extend({ | |
initialize: function(options) { | |
this.children = new demo.collections.Children(); | |
this.attributes = this.parse(this.attributes); | |
} | |
, exampleJSON: { | |
someAttr: 'some value' |
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
#!/usr/bin/env node | |
var mongoose = require('mongoose') | |
, Schema = mongoose.Schema | |
; | |
var catSchema = new Schema({ | |
name: String | |
}); | |
var Cat = mongoose.model('Cat', catSchema); |
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
var mongoose = require('mongoose') | |
, Schema = mongoose.Schema | |
mongoose.connect('mongodb://localhost/identities'); | |
var IdentitySchema = new Schema({ | |
type : { type: String, enum: ['twitter', 'facebook', 'google'] } | |
, uid : { type: String } | |
}) |
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
!function (name, context, definition) { | |
if (typeof require === "function" && typeof exports === "object" && typeof module === "object") | |
module.exports = definition(name, context); | |
else if (typeof define === 'function' && typeof define.amd === 'object') define(definition); | |
else context[name] = definition(name, context); | |
}('chai', this, function (name, context) { | |
function require(p) { | |
var path = require.resolve(p) |
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
diff --git a/chai.js b/chai.js | |
index 040abee..87971a8 100644 | |
--- a/chai.js | |
+++ b/chai.js | |
@@ -277,6 +277,7 @@ | |
this.actual = options.actual; | |
this.expected = options.expected; | |
this.operator = options.operator; | |
+ this.showDiff = true; | |
NewerOlder