update style-loader test

This commit is contained in:
Pooya Parsa 2017-12-29 13:18:47 +03:30
parent d243ad13e1
commit 8868a4e8f4

View File

@ -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, {