Skip to content

Commit 7f888a3

Browse files
committed
Update testing code.
1 parent 589b9bd commit 7f888a3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
void function () {
2+
// check env
3+
if (typeof window === 'undefined') {
4+
console.error('[Sample] Open test.html in browsers to run tests!')
5+
return
6+
}
27

38
describe('Util', function () {
49
describe('sample.__util()', function () {

0 commit comments

Comments
 (0)