Skip to content

Commit cfecf4e

Browse files
committed
test: 💍 remove outdated tests
1 parent 2b52105 commit cfecf4e

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

test/autoProcess/script.test.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,6 @@ SCRIPT_LANGS.forEach(([lang, ext, langOptions]) => {
1818
`script.${ext}`,
1919
)}</script>`;
2020

21-
it(`should throw parsing ${lang} when { ${lang}: false }`, async () => {
22-
const input = `
23-
<div></div>
24-
<script src="./fixtures/script.${ext}"></script>
25-
`;
26-
27-
const opts = getAutoPreprocess({
28-
[lang]: false,
29-
});
30-
31-
expect(await doesCompileThrow(input, opts)).toBe(true);
32-
});
33-
3421
it(`should parse ${lang}`, async () => {
3522
const opts = getAutoPreprocess({
3623
[lang]: langOptions,

test/autoProcess/style.test.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import getAutoPreprocess from '../../src';
2-
import {
3-
preprocess,
4-
getFixtureContent,
5-
doesCompileThrow,
6-
CSS_PATTERN,
7-
} from '../utils';
2+
import { preprocess, getFixtureContent, CSS_PATTERN } from '../utils';
83

94
const STYLE_LANGS: Array<[string, string]> = [
105
['sass', 'sass'],
@@ -15,18 +10,6 @@ const STYLE_LANGS: Array<[string, string]> = [
1510

1611
STYLE_LANGS.forEach(([lang, ext]) => {
1712
describe(`style - preprocessor - ${lang}`, () => {
18-
it(`should throw parsing ${lang} when { ${lang}: false }`, async () => {
19-
const template = `<div></div><style lang="${lang}">${getFixtureContent(
20-
`style.${ext}`,
21-
)}</style>`;
22-
23-
const opts = getAutoPreprocess({
24-
[lang]: false,
25-
});
26-
27-
expect(await doesCompileThrow(template, opts)).toBe(true);
28-
});
29-
3013
it(`should parse ${lang}`, async () => {
3114
const template = `<div></div><style lang="${lang}">${getFixtureContent(
3215
`style.${ext}`,

0 commit comments

Comments
 (0)