Skip to content

Commit cff30ff

Browse files
committed
test: @putout/processor-wasm: rules: remove-unused
1 parent fdea5e7 commit cff30ff

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

packages/processor-wasm/lib/rules/remove-unused/fixture/called.wast renamed to packages/processor-wasm/lib/rules/remove-unused/fixture/call.wast

File renamed without changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(module
2+
(func (export "main")
3+
)
4+
)

packages/processor-wasm/lib/rules/remove-unused/fixture/exported.wast renamed to packages/processor-wasm/lib/rules/remove-unused/fixture/export.wast

File renamed without changes.

packages/processor-wasm/lib/rules/remove-unused/index.spec.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,17 @@ test('putout: processor-wasm: remove-unused: transform', (t) => {
1717
t.end();
1818
});
1919

20-
test('putout: processor-wasm: remove-unused: no report: exported', (t) => {
21-
t.noReport('exported');
20+
test('putout: processor-wasm: remove-unused: no report: export', (t) => {
21+
t.noReport('export');
2222
t.end();
2323
});
2424

25-
test('putout: processor-wasm: remove-unused: no report: called', (t) => {
26-
t.noReport('called');
25+
test('putout: processor-wasm: remove-unused: no report: call', (t) => {
26+
t.noReport('call');
27+
t.end();
28+
});
29+
30+
test('putout: processor-wasm: remove-unused: no report: export-inside', (t) => {
31+
t.noReport('export-inside');
2732
t.end();
2833
});

0 commit comments

Comments
 (0)