Upgrade dependencies and fix ESLint issues.

This commit is contained in:
Oleksii Trekhleb
2020-07-26 13:06:15 +02:00
parent 4d8baf87db
commit 63f5a27152
36 changed files with 4442 additions and 1630 deletions

View File

@@ -54,7 +54,7 @@ export default class Stack {
toArray() {
return this.linkedList
.toArray()
.map(linkedListNode => linkedListNode.value);
.map((linkedListNode) => linkedListNode.value);
}
/**

View File

@@ -56,7 +56,7 @@ describe('Stack', () => {
stack.push({ value: 'test1', key: 'key1' });
stack.push({ value: 'test2', key: 'key2' });
const stringifier = value => `${value.key}:${value.value}`;
const stringifier = (value) => `${value.key}:${value.value}`;
expect(stack.toString(stringifier)).toBe('key2:test2,key1:test1');
expect(stack.pop().value).toBe('test2');