Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5fbb83c

Browse files
committed
Refactor tests for exposed identifiers
1 parentc6db30e commit5fbb83c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎test.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ import {whitespace} from './index.js'
44
import*asmodfrom'./index.js'
55

66
test('whitespace',()=>{
7-
constapi=Object.keys(mod)
8-
assert.ok(api.includes('whitespace'),'should expose `whitespace`')
9-
assert.equal(api.length,1,'should expose the public api')
7+
assert.deepEqual(
8+
Object.keys(mod).sort(),
9+
['whitespace'],
10+
'should expose the public api'
11+
)
1012

1113
//@ts-expect-error: runtime.
1214
assert.equal(whitespace(),false,'should return `false` without node')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp