Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Commit 996893f

Browse files
author
Martynas Žilinskas
authored
Feature: Upgrade dependencies and refactoring. (#8)
1 parent 6115792 commit 996893f

11 files changed

Lines changed: 5992 additions & 5549 deletions

File tree

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@reactway"
3+
}

.github/workflows/build.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"trailingComma": "none",
3+
"tabWidth": 4,
4+
"semi": true,
5+
"singleQuote": false,
6+
"printWidth": 140
7+
}

__tests__/tiny-emitter.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ it("emit when one handlers is added", () => {
3939

4040
emitter.addListener(handler1);
4141

42-
emitter.emit(true);
42+
emitter.emit();
4343

4444
expect(handler1.mock.calls.length).toBe(1);
4545
});
@@ -54,7 +54,7 @@ it("emit when multiple handlers added", () => {
5454
emitter.addListener(handler2);
5555
emitter.addListener(handler3);
5656

57-
emitter.emit(true);
57+
emitter.emit();
5858

5959
expect(handler1.mock.calls.length).toBe(1);
6060
expect(handler2.mock.calls.length).toBe(1);

codecov.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)