Permalink
Browse files

Make sure we're using strict mode

  • Loading branch information...
1 parent 1fdb3d7 commit db7dcb7dc38442f75b6bbdf325531d3c88565ecd @timoxley timoxley committed Dec 19, 2011
Showing with 10 additions and 4 deletions.
  1. +2 −0 index.js
  2. +6 −4 tests/examples/kin-examples.js
  3. +2 −0 tests/fixtures/index.js
View
@@ -1 +1,3 @@
+'use strict'
+
module.exports = require('./lib/kin')
@@ -1,3 +1,5 @@
+'use strict'
+
var Kin = require('../../lib/kin')
var Faker = require('Faker')
var assert = require('assert')
@@ -175,7 +177,7 @@ kin.generate('User', {documents: 5}, function(err, user) {
})
/* Example output for kin.generate('User', {documents: 5}) */
-var GeneratedUserWithDocumentsExample =
+var GeneratedUserWithDocumentsExample =
{
username: 'Lydia',
email: 'Jaron@angie.biz',
@@ -225,9 +227,9 @@ mongoose.connect('kin_examples')
kin.mongoose = mongoose
/* Some fixtures we prepared earlier */
-User = require('../fixtures').User // Same as our user before, except as a Mongoose model
-Stream = require('../fixtures').Stream // Imagine a stream is like an RSS feed containing 'Activities'
-Activity = require('../fixtures').Activity // each Activity references a Stream ID
+var User = require('../fixtures').User // Same as our user before, except as a Mongoose model
+var Stream = require('../fixtures').Stream // Imagine a stream is like an RSS feed containing 'Activities'
+var Activity = require('../fixtures').Activity // each Activity references a Stream ID
kin.blueprint('Stream', {
_model: 'Stream',
View
@@ -1,3 +1,5 @@
+'use strict'
+
var mongoose = require('mongoose'),
Schema = mongoose.Schema

0 comments on commit db7dcb7

Please sign in to comment.