We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49c6dd2 commit ca45c59Copy full SHA for ca45c59
1 file changed
test/fastboot-info-test.js
@@ -9,6 +9,7 @@ describe("FastBootInfo", function() {
9
var response;
10
var request;
11
var fastbootInfo;
12
+ var metadata = { foo: 'bar' };
13
14
beforeEach(function () {
15
response = {};
@@ -22,7 +23,7 @@ describe("FastBootInfo", function() {
22
23
}
24
};
25
- fastbootInfo = new FastBootInfo(request, response);
26
+ fastbootInfo = new FastBootInfo(request, response, { metadata });
27
});
28
29
it("has a FastBootRequest", function() {
@@ -32,5 +33,8 @@ describe("FastBootInfo", function() {
32
33
it("has a FastBootResponse", function() {
34
expect(fastbootInfo.response).to.be.an.instanceOf(FastBootResponse);
35
-});
36
37
+ it("has metadata", function() {
38
+ expect(fastbootInfo.metadata).to.deep.equal(metadata);
39
+ });
40
+});
0 commit comments