Skip to content

Commit d5d2181

Browse files
committed
chore: added sitipe and pluggin tests
1 parent 40f9022 commit d5d2181

File tree

10 files changed

+29
-3
lines changed

10 files changed

+29
-3
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

test/unit/editors/Sitipe.test.ts renamed to test/unit/compas-editors/Sitipe.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, fixture, html } from '@open-wc/testing';
22

3-
import Sitipe from '../../../src/editors/Sitipe.js';
3+
import Sitipe from '../../../src/compas-editors/Sitipe.js';
44

55
describe('Sitipe plugin', () => {
66
customElements.define('sitipe-plugin', Sitipe);
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* @web/test-runner snapshot v1 */
2+
export const snapshots = {};
3+
4+
snapshots["Sitipe plugin No doc loaded Should look like latest snapshot"] =
5+
`<div class="container">
6+
<h1>
7+
<span style="color: var(--base1)">
8+
[substation.missing]
9+
</span>
10+
</h1>
11+
</div>
12+
`;
13+
/* end snapshot Sitipe plugin No doc loaded Should look like latest snapshot */
14+
15+
snapshots["Sitipe plugin With Doc loaded Should look like latest snapshot"] =
16+
`<div class="container">
17+
<section>
18+
<sitipe-substation>
19+
</sitipe-substation>
20+
</section>
21+
</div>
22+
`;
23+
/* end snapshot Sitipe plugin With Doc loaded Should look like latest snapshot */
24+
File renamed without changes.

test/unit/editors/sitipe/sitipe-substation.test.ts renamed to test/unit/compas-editors/sitipe/sitipe-substation.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { fixture, html, expect } from '@open-wc/testing';
22

3-
import '../../../../src/editors/sitipe/sitipe-substation.js';
4-
import { SitipeSubstation } from '../../../../src/editors/sitipe/sitipe-substation.js';
3+
import '../../../../src/compas-editors/sitipe/sitipe-substation.js';
4+
import { SitipeSubstation } from '../../../../src/compas-editors/sitipe/sitipe-substation.js';
55

66
describe('sitipe-substation', () => {
77
let element: SitipeSubstation;

web-test-runner.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
2222
name: 'unit',
2323
files: [
2424
'test/unit/compas/*.test.ts',
25+
'test/unit/compas-editors/**/*.test.ts',
2526
'test/unit/compas-services/*.test.ts',
2627
'test/unit/compas-wizards/*.test.ts',
28+
'test/unit/Plugging.test.ts',
2729
],
2830
},
2931
{

0 commit comments

Comments
 (0)