Skip to content

Instantly share code, notes, and snippets.

@spadgos
Created May 14, 2014 09:22
Show Gist options
  • Save spadgos/3e0d16518b35eab7ecb1 to your computer and use it in GitHub Desktop.
Save spadgos/3e0d16518b35eab7ecb1 to your computer and use it in GitHub Desktop.
ESLint errors on master
$ git clone [email protected]:eslint/eslint.git
$ cd eslint
$ npm install
$ npm test
1) default-case switch (a) {
case 1: break;
//oh-oh
// no default
}:
AssertionError: Should have no errors but had 1: [ { ruleId: 'default-case',
node:
{ type: 'SwitchStatement',
discriminant: [Object],
cases: [Object],
range: [Object],
loc: [Object],
parent: [Object] },
message: 'Expected a default case.',
line: 1,
column: 0,
source: 'switch (a) { \n case 1: break; \n\n//oh-oh \n // no default\n }' } ]: expected 1 to equal 0
2) default-case switch (a) {
case 1: a = 4;
// no default
}:
AssertionError: Should have no errors but had 1: [ { ruleId: 'default-case',
node:
{ type: 'SwitchStatement',
discriminant: [Object],
cases: [Object],
range: [Object],
loc: [Object],
parent: [Object] },
message: 'Expected a default case.',
line: 1,
column: 0,
source: 'switch (a) { \n case 1: a = 4; \n\n// no default\n }' } ]: expected 1 to equal 0
3) default-case switch (a) {
case 1: a = 4;
/* no default */
}:
AssertionError: Should have no errors but had 1: [ { ruleId: 'default-case',
node:
{ type: 'SwitchStatement',
discriminant: [Object],
cases: [Object],
range: [Object],
loc: [Object],
parent: [Object] },
message: 'Expected a default case.',
line: 1,
column: 0,
source: 'switch (a) { \n case 1: a = 4; \n\n/* no default */\n }' } ]: expected 1 to equal 0
4) default-case switch (a) {
case 1: a = 4; break; break;
// no default
}:
AssertionError: Should have no errors but had 1: [ { ruleId: 'default-case',
node:
{ type: 'SwitchStatement',
discriminant: [Object],
cases: [Object],
range: [Object],
loc: [Object],
parent: [Object] },
message: 'Expected a default case.',
line: 1,
column: 0,
source: 'switch (a) { \n case 1: a = 4; break; break; \n\n// no default\n }' } ]: expected 1 to equal 0
5) no-undef toString():
AssertionError: Should have no errors but had 1: [ { ruleId: 'no-undef',
node:
{ type: 'Identifier',
name: 'toString',
range: [Object],
loc: [Object],
parent: [Object] },
message: '\'toString\' is not defined.',
line: 1,
column: 0,
source: 'toString' } ]: expected 1 to equal 0
6) no-undef hasOwnProperty():
AssertionError: Should have no errors but had 1: [ { ruleId: 'no-undef',
node:
{ type: 'Identifier',
name: 'hasOwnProperty',
range: [Object],
loc: [Object],
parent: [Object] },
message: '\'hasOwnProperty\' is not defined.',
line: 1,
column: 0,
source: 'hasOwnProperty' } ]: expected 1 to equal 0
@spadgos
Copy link
Author

spadgos commented May 14, 2014

(Running on Ubuntu 14.04)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment