mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-05-18 10:30:03 +08:00
npm-script: fix 'test'
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
"prepublish": "NODE_ENV=publish npm run build",
|
||||
"test:specs": "NODE_ENV=test karma start config/karma.config.js",
|
||||
"test:specs:watch": "npm run test:specs -- --no-single-run",
|
||||
"test": "npm run specs && npm run lint"
|
||||
"test": "npm run test:specs && npm run lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": ">=0.13.3",
|
||||
|
||||
@@ -102,8 +102,8 @@ suite('TextInput', () => {
|
||||
)
|
||||
const height = dom.getBoundingClientRect().height
|
||||
// need a range because of cross-browser differences
|
||||
assert.ok(height >= 60)
|
||||
assert.ok(height <= 65)
|
||||
assert.ok(height >= 60, height)
|
||||
assert.ok(height <= 66, height)
|
||||
})
|
||||
|
||||
test('prop "multiline"', () => {
|
||||
|
||||
Reference in New Issue
Block a user