Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit af78991

Browse files
Merge pull request #96 from alephjs/fix-sass-tests
test: remove assignment statement to location
2 parents a83a30f + 39c9f5e commit af78991

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

.github/workflows/aleph_in_deno.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
run: deno cache deps.ts
3333

3434
- name: Run tests
35-
run: deno test -A --unstable
35+
run: deno test -A --unstable --location "http://localhost/"

plugins/sass_test.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ import { assertEquals } from 'https://deno.land/[email protected]/testing/asserts.ts';
22
import plugin from './sass.ts';
33

44
Deno.test('project scss loader plugin', () => {
5-
Object.assign(window, {
6-
location: {
7-
href: 'https://localhost/'
8-
}
9-
})
105
const { code, loader } = plugin.transform(
116
(new TextEncoder).encode('$someVar: 123px; .some-selector { width: $someVar; }'),
127
'test.scss'
@@ -19,11 +14,6 @@ Deno.test('project scss loader plugin', () => {
1914
})
2015

2116
Deno.test('project sass loader plugin', () => {
22-
Object.assign(window, {
23-
location: {
24-
href: 'https://localhost/'
25-
}
26-
})
2717
let ret = plugin.transform(
2818
(new TextEncoder).encode('$someVar: 123px\n.some-selector\n width: 123px'),
2919
'test.sass'

0 commit comments

Comments
 (0)