Skip to content

Commit

Permalink
fix: use error param
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo committed May 15, 2019
1 parent 26c25b5 commit ef5c718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/veui/test/unit/specs/directives/longpress.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const DEFAULT_TIMEOUT = config.get('longpress.timeout')
const DEFAULT_REPEAT_INTERVAL = config.get('longpress.repeatInterval')

function isAbout (val, base, error = 80) {
return val >= base && val < base + 100
return val >= base && val < base + error
}

describe('directives/longpress', () => {
Expand Down

0 comments on commit ef5c718

Please sign in to comment.