viewmodel
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -76,2 +76,3 @@ // lib/queue.js v0.1.0 | ||
delete obj.commit; | ||
delete obj.toJSON; | ||
delete obj.set; | ||
@@ -100,2 +101,3 @@ delete obj.get; | ||
}; | ||
vm.toJSON = function() { return fromViewModel(this); }; | ||
vm.set = set; | ||
@@ -130,2 +132,2 @@ vm.get = get; | ||
}; | ||
}; |
{ | ||
"author": "adrai", | ||
"name": "viewmodel", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -16,2 +16,3 @@ var expect = require('expect.js') | ||
delete obj.commit; | ||
delete obj.toJSON; | ||
delete obj.set; | ||
@@ -35,2 +36,3 @@ delete obj.get; | ||
delete obj.commit; | ||
delete obj.toJSON; | ||
delete obj.set; | ||
@@ -50,2 +52,3 @@ delete obj.get; | ||
}; | ||
vm.toJSON = function() { return dummyRepo.fromViewModel(this); }; | ||
vm.set = function(data) { | ||
@@ -391,2 +394,2 @@ if (arguments.length === 2) { | ||
}); | ||
}); |
@@ -16,2 +16,3 @@ var expect = require('expect.js') | ||
delete obj.commit; | ||
delete obj.toJSON; | ||
delete obj.set; | ||
@@ -31,2 +32,3 @@ delete obj.get; | ||
}; | ||
vm.toJSON = function() { return repository.fromViewModel(this); }; | ||
vm.set = function(data) { | ||
@@ -146,2 +148,3 @@ if (arguments.length === 2) { | ||
expect(obj.get).to.be.a('function'); | ||
expect(obj.toJSON).to.be.a('function'); | ||
expect(obj.destroy).to.be.a('function'); | ||
@@ -301,2 +304,4 @@ expect(obj.commit).to.be.a('function'); | ||
expect(results[1].get).to.be.a('function'); | ||
expect(results[0].toJSON).to.be.a('function'); | ||
expect(results[1].toJSON).to.be.a('function'); | ||
expect(results[0].destroy).to.be.a('function'); | ||
@@ -796,2 +801,2 @@ expect(results[1].destroy).to.be.a('function'); | ||
}); | ||
}); |
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
104177
16
1264