Skip to content
Snippets Groups Projects
Commit 6cb18c3d authored by Yadd's avatar Yadd
Browse files

Fix test for tape ≥ 5

Closes: #997582
parent bdf77aed
No related branches found
No related tags found
No related merge requests found
legacy/dist/
packages/*/dist/
node_modules/@rollup/
packages/alias/node_modules/
Description: replace ava by tape in test
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2020-10-05
Last-Update: 2021-10-25
--- a/packages/alias/test/test.js
+++ b/packages/alias/test/test.js
......@@ -208,7 +208,7 @@ Last-Update: 2020-10-05
},
[
{ source: 'local-resolver', importer: posix.resolve(DIRNAME, './files/index.js') },
@@ -336,9 +360,10 @@
@@ -336,9 +360,11 @@
path.resolve(DIRNAME, 'fixtures', 'index.js'),
path.resolve(DIRNAME, 'fixtures', 'folder', 'index.js')
])
......@@ -218,10 +218,11 @@ Last-Update: 2020-10-05
-test('Alias + rollup-plugin-node-resolve', (t) =>
+test('Alias + rollup-plugin-node-resolve', (t) => {
+ t.plan(3);
rollup({
input: './test/fixtures/index.js',
plugins: [
@@ -351,20 +376,20 @@
@@ -351,20 +377,20 @@
{ find: 'superdeep', replacement: './deep/deep2' }
]
}),
......@@ -247,11 +248,10 @@ Last-Update: 2020-10-05
]
.map((id) => path.normalize(id))
.forEach((expectedId, index) =>
@@ -374,4 +399,6 @@
@@ -374,4 +400,5 @@
`expected ${normalizedIds[index]} to end with ${expectedId}`
)
);
- }));
+ })
+ t.end();
+});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment