ampersand-state
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "ampersand-state", | ||
"description": "An observable, extensible state object with derived watchable properties.", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": "Henrik Joreteg <henrik@andyet.net>", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -698,1 +698,14 @@ var tape = require('tape'); | ||
}); | ||
test('parent collection references should be maintained when adding/removing to a collection', function (t) { | ||
var StateObj = State.extend({ | ||
id: 'string' | ||
}); | ||
var c = new Collection(); | ||
var s = new StateObj({id: '47'}); | ||
c.add(s); | ||
t.equal(s.collection, c); | ||
c.remove(s); | ||
t.notOk(s.collection); | ||
t.end(); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54826
1314