Skip to content

Commit

Permalink
lint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vijithassar committed Apr 7, 2017
1 parent e01ded7 commit af76fcb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Empty file modified eslintrc.json
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dev": "rollup --config --watch",
"test": "mocha",
"pretest": "npm run build",
"lint": "eslint --config eslintrc.json source && eslint --config eslint.json test"
"lint": "eslint --config eslintrc.json source && eslint --config eslintrc.json test"
},
"keywords": [
"hashmaps",
Expand Down
6 changes: 2 additions & 4 deletions test/hashmap-iterators.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ describe('iterable hashmap', function() {
};
let end = o(start);
Object.keys(start).forEach(function(key) {
let value = start[key];
assert.equal(end[key], start[key]);
});
});
Expand All @@ -50,7 +49,6 @@ describe('iterable hashmap', function() {
});
it('declares iteration methods as non-enumerable', function() {
let item = o({test: true});
let item_properties = Object.getOwnPropertyNames(item);
iteration_methods.forEach(function(method) {
assert(item.propertyIsEnumerable(method) === false);
});
Expand Down Expand Up @@ -82,14 +80,14 @@ describe('sorting', function() {
return a < b;
});
let first = '';
item.forEach(function(value, key) {
item.forEach(function(value) {
first += value;
});
item.sort(function(a, b) {
return a > b;
});
let second = '';
item.forEach(function(value, key) {
item.forEach(function(value) {
second += value;
});
assert.notEqual(first, second);
Expand Down

0 comments on commit af76fcb

Please sign in to comment.