aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-06-14 16:08:58 +0200
committerFlorian Dold <florian@dold.me>2021-06-14 16:08:58 +0200
commit1cde390c23f2668a3777752632c48febd10a28ee (patch)
treed5efa59c867b8a92e32fde37da841c4c0b8154fd /packages/taler-util
parentbed86d96135d3f7faa34d9c1e377c8fb2b06abea (diff)
fix up imports, no more esm in tests
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/package.json3
-rw-r--r--packages/taler-util/src/codec.test.ts2
-rw-r--r--packages/taler-util/src/helpers.test.ts2
-rw-r--r--packages/taler-util/src/i18n.ts2
-rw-r--r--packages/taler-util/src/libtool-version.test.ts2
-rw-r--r--packages/taler-util/src/payto.test.ts2
-rw-r--r--packages/taler-util/src/talerconfig.test.ts2
-rw-r--r--packages/taler-util/src/taleruri.test.ts2
8 files changed, 7 insertions, 10 deletions
diff --git a/packages/taler-util/package.json b/packages/taler-util/package.json
index d0b703459..1f306041b 100644
--- a/packages/taler-util/package.json
+++ b/packages/taler-util/package.json
@@ -40,9 +40,6 @@
"tslib": "^2.1.0"
},
"ava": {
- "require": [
- "esm"
- ],
"files": [
"lib/*test*"
]
diff --git a/packages/taler-util/src/codec.test.ts b/packages/taler-util/src/codec.test.ts
index f8f4c797c..a4fa643cb 100644
--- a/packages/taler-util/src/codec.test.ts
+++ b/packages/taler-util/src/codec.test.ts
@@ -25,7 +25,7 @@ import {
codecForConstString,
codecForString,
buildCodecForUnion,
-} from "./codec";
+} from "./codec.js";
interface MyObj {
foo: string;
diff --git a/packages/taler-util/src/helpers.test.ts b/packages/taler-util/src/helpers.test.ts
index dbecf14b8..0ea4c033e 100644
--- a/packages/taler-util/src/helpers.test.ts
+++ b/packages/taler-util/src/helpers.test.ts
@@ -15,7 +15,7 @@
*/
import test from "ava";
-import * as helpers from "./helpers";
+import * as helpers from "./helpers.js";
test("URL canonicalization", (t) => {
// converts to relative, adds https
diff --git a/packages/taler-util/src/i18n.ts b/packages/taler-util/src/i18n.ts
index a4b0bf81f..4a9384108 100644
--- a/packages/taler-util/src/i18n.ts
+++ b/packages/taler-util/src/i18n.ts
@@ -1,6 +1,6 @@
// @ts-ignore: no type decl for this library
import * as jedLib from "jed";
-import { Logger } from "./logging";
+import { Logger } from "./logging.js";
const logger = new Logger("i18n/index.ts");
diff --git a/packages/taler-util/src/libtool-version.test.ts b/packages/taler-util/src/libtool-version.test.ts
index 19f997722..d35642518 100644
--- a/packages/taler-util/src/libtool-version.test.ts
+++ b/packages/taler-util/src/libtool-version.test.ts
@@ -14,7 +14,7 @@
TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
-import * as LibtoolVersion from "./libtool-version";
+import * as LibtoolVersion from "./libtool-version.js";
import test from "ava";
diff --git a/packages/taler-util/src/payto.test.ts b/packages/taler-util/src/payto.test.ts
index 01280b650..66a05b3a2 100644
--- a/packages/taler-util/src/payto.test.ts
+++ b/packages/taler-util/src/payto.test.ts
@@ -16,7 +16,7 @@
import test from "ava";
-import { parsePaytoUri } from "./payto";
+import { parsePaytoUri } from "./payto.js";
test("basic payto parsing", (t) => {
const r1 = parsePaytoUri("https://example.com/");
diff --git a/packages/taler-util/src/talerconfig.test.ts b/packages/taler-util/src/talerconfig.test.ts
index 2f920fccf..dc4c4de12 100644
--- a/packages/taler-util/src/talerconfig.test.ts
+++ b/packages/taler-util/src/talerconfig.test.ts
@@ -18,7 +18,7 @@
* Imports
*/
import test from "ava";
-import { pathsub, Configuration } from "./talerconfig";
+import { pathsub, Configuration } from "./talerconfig.js";
test("pathsub", (t) => {
t.assert("foo" === pathsub("foo", () => undefined));
diff --git a/packages/taler-util/src/taleruri.test.ts b/packages/taler-util/src/taleruri.test.ts
index e80acc5c3..5bf7ad4ee 100644
--- a/packages/taler-util/src/taleruri.test.ts
+++ b/packages/taler-util/src/taleruri.test.ts
@@ -20,7 +20,7 @@ import {
parseWithdrawUri,
parseRefundUri,
parseTipUri,
-} from "./taleruri";
+} from "./taleruri.js";
test("taler pay url parsing: wrong scheme", (t) => {
const url1 = "talerfoo://";