Skip to content

Commit 59fb635

Browse files
authored
Merge pull request #89 from localnerve/rc-7.0.0
@7.0.0 - node 20+, dropped testing node-sass
2 parents ada02d1 + 19ec48e commit 59fb635

File tree

4 files changed

+111
-2295
lines changed

4 files changed

+111
-2295
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20

__tests__/test.js

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@
99
import * as fs from 'node:fs';
1010
import * as url from 'node:url';
1111
import * as path from 'node:path';
12-
import * as otherSass from 'node-sass';
1312
import * as defaultSass from 'sass';
1413
import assetFunctions from '../index.js';
1514

1615
const thisDir = url.fileURLToPath(new URL('.', import.meta.url));
1716
const sassDir = path.join(thisDir, 'scss');
1817
const cssDir = path.join(thisDir, 'css');
1918
const errDir = path.join(thisDir, 'err');
20-
const otherSassOpts = { sass: otherSass, checkResult: checkCompileResult };
2119
const files = fs.readdirSync(sassDir);
2220

2321
function 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-
208200
describe('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-
268251
describe('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

Comments
 (0)