Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkslategrey/6ec20f42aa1c9314717a81be9f5f468c to your computer and use it in GitHub Desktop.
Save darkslategrey/6ec20f42aa1c9314717a81be9f5f468c to your computer and use it in GitHub Desktop.
ajx = the iron-router auto
element = the custom element which contains the iron-router
server = jasmine
element.campaigns = element properties filled in the on-response handler
element.$.bllist = the <ul> which contains the is-repeat dom template with items
test('load the campaigns', function (done) {
ajx.addEventListener('request', function (e) {
server.respond('GET', /campaigns.json/,
[200, responseHeaders.json,
body]);
});
ajx.addEventListener('response', function (e) {
expect(JSON.stringify(element.campaigns)).to.equal(body);
expect(element.$.bllist).to.equal(''); /// <<< seems the repeat template is not transformed
done();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment