Projects
Eulaceura:Mainline
nodejs-difflib
_service:obs_scm:difflib-0.2.4-fix-test-keyword...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:difflib-0.2.4-fix-test-keywords.patch of Package nodejs-difflib
diff --git a/test/global.coffee b/test/global.coffee index a5bb19c..07954f5 100644 --- a/test/global.coffee +++ b/test/global.coffee @@ -28,7 +28,7 @@ test '.getCloseMatches', -> getCloseMatches('appel', ['ape', 'apple', 'peach', 'puppy']) .should.eql ['apple', 'ape'] - KEYWORDS = require('coffee-script').RESERVED + KEYWORDS = ['case', 'default', 'function', 'var', 'void', 'with', 'const', 'let', 'enum', 'export', 'import', 'native', 'implements', 'interface', 'package', 'private', 'protected', 'public', 'static', 'true', 'false', 'null', 'this', 'new', 'delete', 'typeof', 'in', 'instanceof', 'return', 'throw', 'break', 'continue', 'debugger', 'yield', 'if', 'else', 'switch', 'for', 'while', 'do', 'try', 'catch', 'finally', 'class', 'extends', 'super', 'undefined', 'then', 'unless', 'until', 'loop', 'of', 'by', 'when', 'arguments', 'eval', 'yield*'] getCloseMatches('wheel', KEYWORDS).should.eql ['when', 'while'] getCloseMatches('accost', KEYWORDS).should.eql ['const']
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2