Skip to content

Commit ac395e0

Browse files
author
Dennis Labordus
committed
Fixed (snapshot) tests.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 2f20cda commit ac395e0

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

test/integration/Setting.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ import '../../src/open-scd.js';
44

55
import { OpenSCD } from '../../src/open-scd.js';
66
import { newLoadNsdocEvent } from "../../src/Setting.js";
7-
import { cleanLocalStorageForNsdocFiles } from "./foundation.js";
87

98
describe('Setting', () => {
109
let element: OpenSCD;
1110

1211
beforeEach(async () => {
13-
cleanLocalStorageForNsdocFiles();
12+
localStorage.clear();
1413

1514
element = await fixture(html`
1615
<open-scd></open-scd>

test/integration/foundation.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/integration/open-scd.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ import { html, fixture, expect } from '@open-wc/testing';
33
import '../../src/open-scd.js';
44
import { newEmptySCD } from '../../src/schemas.js';
55
import { OpenSCD } from '../../src/open-scd.js';
6-
import { cleanLocalStorageForNsdocFiles } from "./foundation.js";
76

87
describe('open-scd', () => {
98
let element: OpenSCD;
109
let invalidSCL: string;
1110
let validSCL: string;
1211

1312
beforeEach(async () => {
14-
cleanLocalStorageForNsdocFiles();
13+
localStorage.clear();
1514

1615
invalidSCL = await fetch('/test/testfiles/invalid2007B.scd').then(
1716
response => response.text()

0 commit comments

Comments
 (0)