Created
July 28, 2016 13:17
-
-
Save darkslategrey/6ec20f42aa1c9314717a81be9f5f468c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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