不要怂,就是干,撸起袖子干!

Commit b2416a8a by Bulkan Evcimen

Demonstrate JSON.stringify works

1 parent 72f14fc5
Showing with 10 additions and 2 deletions
......@@ -50,14 +50,22 @@ if (dialect.match(/^postgres/)) {
username: 'bob', email: ['myemail@email.com']
})
.then(function(userInstance){
console.log(userInstance);
expect(userInstance.friends).to.have.length(0);
return userInstance.updateAttributes({
friends: [{
name: 'John Smythe'
}]
}],
//friends: [JSON.stringify({
//name: 'John Smythe'
//})]
});
})
.get('friends')
.tap(console.log)
.tap(function(friends){
expect(friends).to.have.length(1);
});
});
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!