Skip to content

Commit 1d38ab8

Browse files
committed
test(util): write test to cover new context logic
1 parent 63c54d3 commit 1d38ab8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/utils.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ describe('getRenderOptions', () => {
4545
expect(output.plugins).toHaveLength(0);
4646
});
4747

48+
it('should not break with undefined context', () => {
49+
const input: d.PluginOptions = {
50+
injectGlobalPaths: ['./my/global/variables.pcss']
51+
};
52+
53+
expect(() => {
54+
const output = util.getRenderOptions(input, undefined, undefined);
55+
}).not.toThrow();
56+
});
57+
4858
});
4959

5060

0 commit comments

Comments
 (0)