fix(core): update
This commit is contained in:
23
test/test.browser.ts
Normal file
23
test/test.browser.ts
Normal file
@ -0,0 +1,23 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as deesElement from '../ts/index';
|
||||
|
||||
tap.test('should create a static element', async () => {
|
||||
@deesElement.customElement('my-button')
|
||||
class MyButton extends deesElement.DeesElement {
|
||||
// STATIC
|
||||
public static styles = [
|
||||
deesElement.css`
|
||||
.buttonClass {
|
||||
background: ${deesElement.cssManager.dbTheme('blue', 'black')};
|
||||
}
|
||||
`
|
||||
];
|
||||
|
||||
// INSTANCE
|
||||
render() {
|
||||
return deesElement.html`<div class="buttonClass">My Button</div>`
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
tap.start();
|
@ -1,6 +0,0 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as deesElement from '../ts/index';
|
||||
|
||||
tap.test('first test', async () => {});
|
||||
|
||||
tap.start();
|
Reference in New Issue
Block a user