summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-06-29 23:14:59 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-06-29 23:14:59 +0200
commit7a244dd2af1375af9197188aa84f13bc215b4065 (patch)
treeef58ac0aac597b00a6b1adb7139b320ffee07a00 /test
parentb883e87b1e5222388e6562296009a49126d3af3c (diff)
downloadcollection_json.js-7a244dd2af1375af9197188aa84f13bc215b4065.tar.gz
collection_json.js-7a244dd2af1375af9197188aa84f13bc215b4065.tar.bz2
collection_json.js-7a244dd2af1375af9197188aa84f13bc215b4065.tar.xz
collection_json.js-7a244dd2af1375af9197188aa84f13bc215b4065.zip
o Remembering that all objects should start with a single 'collection'.
Diffstat (limited to 'test')
-rw-r--r--test/collection_json.test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/collection_json.test.js b/test/collection_json.test.js
index b74d99b..24f69e4 100644
--- a/test/collection_json.test.js
+++ b/test/collection_json.test.js
@@ -22,7 +22,7 @@ var collection1 = {collection: {
describe('fromObject', function() {
it('Has basic fields', function() {
- var collection = collection_json.fromObject({});
+ var collection = collection_json.fromObject({}).collection;
assert.deepEqual([], collection.items);
assert.deepEqual([], collection.links);
assert.deepEqual([], collection.queries);