Created
February 11, 2016 22:07
-
-
Save Joris-van-der-Wel/006b5bbdb9eac060ced0 to your computer and use it in GitHub Desktop.
Indent chained methods?
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
specify("explicit config.html, a string that is also a valid file", () => { | |
return readTestFixture("jsdom/files/env.html") | |
.then(body => { | |
return nodeResolverPromise(done => { | |
env({ | |
html: body, | |
url: "http://example.com/", | |
done | |
}); | |
}) | |
.then(window => { | |
assert.equal(serializeDocument(window.document), "<html><head></head><body>" + body + "</body></html>"); | |
assert.equal(window.location.href, "http://example.com/"); | |
}); | |
}); | |
}); | |
// Or: | |
specify("explicit config.html, a string that is also a valid file", () => { | |
return readTestFixture("jsdom/files/env.html") | |
.then(body => { | |
return nodeResolverPromise(done => { | |
env({ | |
html: body, | |
url: "http://example.com/", | |
done | |
}); | |
}) | |
.then(window => { | |
assert.equal(serializeDocument(window.document), "<html><head></head><body>" + body + "</body></html>"); | |
assert.equal(window.location.href, "http://example.com/"); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I often enjoy