Skip to content

Commit

Permalink
test(util): write test to cover new context logic
Browse files Browse the repository at this point in the history
  • Loading branch information
DesignByOnyx committed Jun 18, 2019
1 parent e66d6e7 commit 853fe03
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ describe('getRenderOptions', () => {
expect(output.plugins).toHaveLength(0);
});

it('should not break with undefined context', () => {
const input: d.PluginOptions = {
injectGlobalPaths: ['./my/global/variables.pcss']
};

expect(() => {
const output = util.getRenderOptions(input, undefined, undefined);
}).not.toThrow();
});

});


Expand Down

0 comments on commit 853fe03

Please sign in to comment.