Skip to content

Commit

Permalink
Fix config test
Browse files Browse the repository at this point in the history
  • Loading branch information
bezoerb committed Jun 5, 2021
1 parent af99878 commit fdd5705
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ function getOptions(options = {}) {

// Set inline options
value.inline = Boolean(inline) && {
minify: value.minify,
basePath: value.base || process.cwd(),
...(inline === true ? {strategy: 'media'} : inline),
};
Expand Down
1 change: 1 addition & 0 deletions test/config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ test('Target config on passed string', () => {
test('Inline config on passed boolean', () => {
expect(getOptions({src: '...', inline: true, base: 'BASE'})).toHaveProperty('inline', {
basePath: 'BASE',
strategy: 'media',
});
});

Expand Down

0 comments on commit fdd5705

Please sign in to comment.