@stylable/dom-test-kit
Advanced tools
Comparing version 4.2.4 to 4.2.5
{ | ||
"name": "@stylable/dom-test-kit", | ||
"version": "4.2.4", | ||
"version": "4.2.5", | ||
"description": "Stylable DOM testing utilities", | ||
@@ -8,7 +8,7 @@ "main": "dist/index.js", | ||
"test": "mocha \"./dist/test/**/*.spec.js\"", | ||
"start": "webpack serve" | ||
"start": "mocha-play ./dist/test/**/*.spec.js -c ./webpack.config.js -w" | ||
}, | ||
"dependencies": { | ||
"@stylable/core": "^4.2.4", | ||
"@stylable/runtime": "^4.2.4" | ||
"@stylable/core": "^4.2.5", | ||
"@stylable/runtime": "^4.2.5" | ||
}, | ||
@@ -15,0 +15,0 @@ "files": [ |
@@ -21,8 +21,10 @@ # @stylable/dom-test-kit | ||
import { StylableDOMUtil } from '@stylable/dom-test-kit'; | ||
import style from './my-component.st.css'; | ||
import * as stylesheet from './my-component.st.css'; | ||
const domUtil = new StylableDOMUtil(style, document.body); | ||
const domUtil = new StylableDOMUtil(stylesheet, document.body); | ||
const partElement = domUtil.select('.part'); | ||
domUtil.hasStyleState(partElement, 'loading'); | ||
if (partElement) { | ||
domUtil.hasStyleState(partElement, 'loading'); | ||
} | ||
``` | ||
@@ -29,0 +31,0 @@ |
18224
62
Updated@stylable/core@^4.2.5
Updated@stylable/runtime@^4.2.5