Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(tests): fix tests
  • Loading branch information
juliomrqz committed Mar 30, 2020
1 parent 6fddc2d commit 9bdf817
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/loaders/file-loader.test.js
Expand Up @@ -10,9 +10,9 @@ describe('@bazzite/nuxt-optimized-images/loaders/file-loader', () => {
const optionsOptimizedProd = getFileLoaderOptions(Object.assign({ isDev: false, optimizeInCurrentState: true, optimizeImagesInDev: false }, defaultConfig))

expect(optionsDev.name).toEqual('[path][name].[ext]')
expect(optionsProd.name).toEqual('img/[hash:7].[ext]')
expect(optionsProd.name).toEqual('img/[contenthash:7].[ext]')

expect(optionsOptimizedDev.name).toEqual('[path][name]--[hash:7].[ext]')
expect(optionsOptimizedProd.name).toEqual('img/[hash:7].[ext]')
expect(optionsOptimizedProd.name).toEqual('img/[contenthash:7].[ext]')
})
})
2 changes: 1 addition & 1 deletion test/loaders/url-loader.test.js
Expand Up @@ -8,7 +8,7 @@ describe('@bazzite/nuxt-optimized-images/loaders/url-loader', () => {

expect(options.limit).toEqual(1000)
expect(options.fallback).toEqual('file-loader')
expect(options.name).toEqual('img/[hash:7].[ext]')
expect(options.name).toEqual('img/[contenthash:7].[ext]')
})

it('allows overwriting the inlineImageLimit option', () => {
Expand Down

0 comments on commit 9bdf817

Please sign in to comment.