mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
update style-loader test
This commit is contained in:
parent
d243ad13e1
commit
8868a4e8f4
@ -2,6 +2,7 @@ import test from 'ava'
|
||||
import { resolve } from 'path'
|
||||
import rp from 'request-promise-native'
|
||||
import { Nuxt, Builder } from '..'
|
||||
import styleLoader from '../lib/builder/webpack/style-loader'
|
||||
import { interceptLog, release } from './helpers/console'
|
||||
|
||||
const port = 4007
|
||||
@ -182,7 +183,7 @@ test('Check /test.txt should return 404', async t => {
|
||||
})
|
||||
|
||||
test('Check build.styleResources for style-resources-loader', async t => {
|
||||
const loaders = builder.styleLoader('scss')
|
||||
const loaders = styleLoader.call(builder, 'scss')
|
||||
const loader = loaders.find(l => l.loader === 'style-resources-loader')
|
||||
t.is(typeof loader, 'object')
|
||||
t.deepEqual(loader.options, {
|
||||
|
Loading…
Reference in New Issue
Block a user