@helloiampau/components
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -1,2 +0,2 @@ | ||
const { patch } = require('incremental-dom'); | ||
const { patch, skip } = require('incremental-dom'); | ||
@@ -7,4 +7,5 @@ module.exports = function(root, template) { | ||
template(root); | ||
skip(); | ||
}); | ||
}; | ||
}; |
{ | ||
"name": "@helloiampau/components", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "My favourite js webapp framework based on web-components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -23,3 +23,4 @@ const chai = require('chai'); | ||
id = { | ||
patch: sinon.spy() | ||
patch: sinon.spy(), | ||
skip: sinon.spy() | ||
}; | ||
@@ -47,2 +48,12 @@ | ||
it('should call the skip function (see issue incremental-dom#182)', function(done) { | ||
const render = mut(root, template); | ||
render(); | ||
id.patch.getCall(0).args[1](); | ||
expect(id.skip).to.be.calledAfter(template); | ||
done(); | ||
}); | ||
}); |
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
6532
218