-
Notifications
You must be signed in to change notification settings - Fork 0
/
stencil-sch-footable.spec.ts
41 lines (35 loc) · 1.22 KB
/
stencil-sch-footable.spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// import { flush, render } from '@stencil/core/testing';
// import { MyName } from './my-name';
// describe('my-name', () => {
// it('should build', () => {
// expect(new MyName()).toBeTruthy();
// });
// describe('rendering', () => {
// let element;
// beforeEach(async () => {
// element = await render({
// components: [MyName],
// html: '<my-name></my-name>'
// });
// });
// it('should work without parameters', () => {
// expect(element.textContent).toEqual('Hello, my name is ');
// });
// it('should work a first name', async () => {
// element.first = 'Peter';
// await flush(element);
// expect(element.textContent).toEqual('Hello, my name is Peter ');
// });
// it('should work with a last name', async () => {
// element.last = 'Parker';
// await flush(element);
// expect(element.textContent).toEqual('Hello, my name is Parker');
// });
// it('should work with both a first and a list name', async () => {
// element.first = 'Peter'
// element.last = 'Parker';
// await flush(element);
// expect(element.textContent).toEqual('Hello, my name is Peter Parker');
// });
// });
// });