Skip to content

Commit ca45c59

Browse files
committed
Add test for metadata appearing on fastbootInfo
1 parent 49c6dd2 commit ca45c59

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

test/fastboot-info-test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ describe("FastBootInfo", function() {
99
var response;
1010
var request;
1111
var fastbootInfo;
12+
var metadata = { foo: 'bar' };
1213

1314
beforeEach(function () {
1415
response = {};
@@ -22,7 +23,7 @@ describe("FastBootInfo", function() {
2223
}
2324
};
2425

25-
fastbootInfo = new FastBootInfo(request, response);
26+
fastbootInfo = new FastBootInfo(request, response, { metadata });
2627
});
2728

2829
it("has a FastBootRequest", function() {
@@ -32,5 +33,8 @@ describe("FastBootInfo", function() {
3233
it("has a FastBootResponse", function() {
3334
expect(fastbootInfo.response).to.be.an.instanceOf(FastBootResponse);
3435
});
35-
});
3636

37+
it("has metadata", function() {
38+
expect(fastbootInfo.metadata).to.deep.equal(metadata);
39+
});
40+
});

0 commit comments

Comments
 (0)