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

test: remove assignment statement to location #96

Merged
merged 2 commits into from
Jan 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/aleph_in_deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just opted to set a default location when running the tests

10 changes: 0 additions & 10 deletions plugins/sass_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down