From ea3322b18ec7b3687c49e31ce713130beeee6f83 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Mon, 2 Sep 2024 13:43:54 -0700 Subject: [PATCH] fixup --- test/providers/config.test.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/providers/config.test.js b/test/providers/config.test.js index 558adf5..5abab1b 100644 --- a/test/providers/config.test.js +++ b/test/providers/config.test.js @@ -1,7 +1,8 @@ import { Generator } from "@jspm/generator"; import assert from "assert"; -const name = Buffer.from("7169746b616f2e636f6d", "hex").toString(); +// this private origin shouldn't really be shared publicly +const name = [111, 97, 107, 116, 105, 113].map(x => String.fromCharCode(x)).reverse().join(''); // Test with custom CDN URL { @@ -10,7 +11,7 @@ const name = Buffer.from("7169746b616f2e636f6d", "hex").toString(); defaultProvider: "jspm.io", providerConfig: { "jspm.io": { - cdnUrl: `https://${name}/` + cdnUrl: `https://${name}.com/` } } }); @@ -20,6 +21,6 @@ const name = Buffer.from("7169746b616f2e636f6d", "hex").toString(); assert.strictEqual( json.imports.react, - `https://${name}/npm:react@17.0.1/dev.index.js` + `https://${name}.com/npm:react@17.0.1/dev.index.js` ); }