From d742b8b7d049f205ce962166ebc58bcfc69a40af Mon Sep 17 00:00:00 2001 From: shadowtime2000 <66655515+shadowtime2000@users.noreply.github.com> Date: Thu, 21 Jan 2021 12:18:06 -0800 Subject: [PATCH 1/2] test: remove assignment statement to location --- plugins/sass_test.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/plugins/sass_test.ts b/plugins/sass_test.ts index e6c2e3847..b07a6a7a2 100644 --- a/plugins/sass_test.ts +++ b/plugins/sass_test.ts @@ -2,11 +2,6 @@ import { assertEquals } from 'https://deno.land/std/testing/asserts.ts'; import plugin from './sass.ts'; Deno.test('project scss loader plugin', () => { - Object.assign(window, { - location: { - href: 'https://localhost/' - } - }) const { code, loader } = plugin.transform( (new TextEncoder).encode('$someVar: 123px; .some-selector { width: $someVar; }'), 'test.scss' @@ -19,11 +14,6 @@ Deno.test('project scss loader plugin', () => { }) Deno.test('project sass loader plugin', () => { - Object.assign(window, { - location: { - href: 'https://localhost/' - } - }) let ret = plugin.transform( (new TextEncoder).encode('$someVar: 123px\n.some-selector\n width: 123px'), 'test.sass' From 39c9f5e19f6660f61f453a416b3a0cd254ab6bad Mon Sep 17 00:00:00 2001 From: shadowtime2000 <66655515+shadowtime2000@users.noreply.github.com> Date: Thu, 21 Jan 2021 13:02:04 -0800 Subject: [PATCH 2/2] ci: use http://localhost as location for tests --- .github/workflows/aleph_in_deno.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/aleph_in_deno.yml b/.github/workflows/aleph_in_deno.yml index 7dd929056..6d527f512 100644 --- a/.github/workflows/aleph_in_deno.yml +++ b/.github/workflows/aleph_in_deno.yml @@ -32,4 +32,4 @@ jobs: run: deno cache std.ts - name: Run tests - run: deno test -A --unstable + run: deno test -A --unstable --location "http://localhost/"