Skip to content

Commit 92e211c

Browse files
authored
build: test on node 6 (#387)
1 parent bf11844 commit 92e211c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
machine:
22
node:
3-
version: 8.2.0
3+
version: 6.12.3
44
dependencies:
55
pre:
66
- npm install -g npm@5.2.0

src/lib/validators.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ export function isRefSelector (refOptionsObject: any) {
7272
}
7373

7474
const validFindKeys = ['ref']
75-
const entries = Object.entries(refOptionsObject)
76-
77-
if (!entries.length) {
75+
const keys = Object.keys(refOptionsObject)
76+
if (!keys.length) {
7877
return false
7978
}
8079

81-
const isValid = entries.every(([key, value]) => {
82-
return validFindKeys.includes(key) && typeof value === 'string'
80+
const isValid = Object.keys(refOptionsObject).every((key) => {
81+
return validFindKeys.includes(key) &&
82+
typeof refOptionsObject[key] === 'string'
8383
})
8484

8585
return isValid

0 commit comments

Comments
 (0)