web-atoms-core
Version:
30 lines (20 loc) • 839 B
text/typescript
import Assert from "@web-atoms/unit-test/dist/Assert";
import Category from "@web-atoms/unit-test/dist/Category";
import Test from "@web-atoms/unit-test/dist/Test";
import TestItem from "@web-atoms/unit-test/dist/TestItem";
import { App } from "../../../App";
import { AtomTheme } from "../../../web/styles/AtomTheme";
("Styles")
export class TestCase extends TestItem {
public async atomTheme(): Promise<any> {
const app = new App();
const theme = app.get(AtomTheme);
await this.delay(200);
Assert.isTrue(theme.styleElement ? true : false);
const a = theme.window.frameHost;
Assert.isTrue(a.className ? true : false);
// tslint:disable-next-line:no-console
// console.log(theme.styleElement.textContent);
}
}