99import * as fs from 'node:fs' ;
1010import * as url from 'node:url' ;
1111import * as path from 'node:path' ;
12- import * as otherSass from 'node-sass' ;
1312import * as defaultSass from 'sass' ;
1413import assetFunctions from '../index.js' ;
1514
1615const thisDir = url . fileURLToPath ( new URL ( '.' , import . meta. url ) ) ;
1716const sassDir = path . join ( thisDir , 'scss' ) ;
1817const cssDir = path . join ( thisDir , 'css' ) ;
1918const errDir = path . join ( thisDir , 'err' ) ;
20- const otherSassOpts = { sass : otherSass , checkResult : checkCompileResult } ;
2119const files = fs . readdirSync ( sassDir ) ;
2220
2321function assignBasicOpts ( options ) {
@@ -199,12 +197,6 @@ describe('basic', function () {
199197 } ) ;
200198} ) ;
201199
202- describe ( 'basic:node-sass' , function ( ) {
203- test . each ( files ) ( '%s' , file => {
204- return equalsFileAsync ( file , 'basic' , otherSassOpts ) ;
205- } ) ;
206- } ) ;
207-
208200describe ( 'err:legacy' , function ( ) {
209201 const input = makeErrorInput ( ) ;
210202 test . failing . each ( input . errFiles ) ( '%s' , file => {
@@ -256,15 +248,6 @@ describe('asset_host:async', function () {
256248 } ) ;
257249} ) ;
258250
259- describe ( 'asset_host:node-sass' , function ( ) {
260- test . each ( files ) ( '%s' , file => {
261- return equalsFileAsync ( file , 'asset_host' , {
262- ...otherSassOpts ,
263- asset_host
264- } ) ;
265- } ) ;
266- } ) ;
267-
268251describe ( 'asset_cache_buster' , function ( ) {
269252 describe ( 'using query' , function ( ) {
270253 test . each ( files ) ( '%s' , file => {
@@ -285,16 +268,6 @@ describe('asset_cache_buster', function () {
285268 } ) ;
286269 } ) ;
287270
288- describe ( 'using query:node-sass' , function ( ) {
289- test . each ( files ) ( '%s' , file => {
290- return equalsFileAsync ( file , 'asset_cache_buster/query' , {
291- ...otherSassOpts ,
292- asset_cache_buster : asset_cache_buster_query ,
293- checkResult : checkCompileResult
294- } ) ;
295- } ) ;
296- } ) ;
297-
298271 describe ( 'using path' , function ( ) {
299272 test . each ( files ) ( '%s' , file => {
300273 return equalsFileAsync ( file , 'asset_cache_buster/path' , {
@@ -313,13 +286,4 @@ describe('asset_cache_buster', function () {
313286 } ) ;
314287 } ) ;
315288 } ) ;
316-
317- describe ( 'using path:node-sass' , function ( ) {
318- test . each ( files ) ( '%s' , file => {
319- return equalsFileAsync ( file , 'asset_cache_buster/path' , {
320- asset_cache_buster : asset_cache_buster_path ,
321- ...otherSassOpts
322- } ) ;
323- } ) ;
324- } ) ;
325289} ) ;
0 commit comments