summaryrefslogtreecommitdiff
path: root/test/es-module
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-06-30 13:51:35 +0200
committerAnna Henningsen <anna@addaleax.net>2018-06-30 14:13:32 +0200
commitdeff8dbf4968974d1dab50122216bb7eb6c6aeb5 (patch)
treee758a2dc1a5f700911bde599658bec60407fb1b5 /test/es-module
parent1bf42f4777bfc7ce61873dbd17660b9e265357e9 (diff)
downloadandroid-node-v8-deff8dbf4968974d1dab50122216bb7eb6c6aeb5.tar.gz
android-node-v8-deff8dbf4968974d1dab50122216bb7eb6c6aeb5.tar.bz2
android-node-v8-deff8dbf4968974d1dab50122216bb7eb6c6aeb5.zip
test: fix ESM test
The previously landed commit was broken and it’s too late to force-push. Fixing up the test seems to work. Refs: https://github.com/nodejs/node/pull/21352 PR-URL: https://github.com/nodejs/node/pull/21605 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/es-module')
-rw-r--r--test/es-module/test-esm-loader-invalid-format.mjs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/es-module/test-esm-loader-invalid-format.mjs b/test/es-module/test-esm-loader-invalid-format.mjs
index 88b128affd..f8714d4aa1 100644
--- a/test/es-module/test-esm-loader-invalid-format.mjs
+++ b/test/es-module/test-esm-loader-invalid-format.mjs
@@ -4,8 +4,8 @@ import assert from 'assert';
import('../fixtures/es-modules/test-esm-ok.mjs')
.then(assert.fail, expectsError({
- code: 'ERR_INVALID_RETURN_PROPERTY',
- message: 'Expected string to be returned for the "url" from the ' +
- '"loader resolve" function but got "undefined"'
+ code: 'ERR_INVALID_RETURN_PROPERTY_VALUE',
+ message: 'Expected string to be returned for the "format" from the ' +
+ '"loader resolve" function but got type undefined.'
}))
.then(mustCall());