Skip to content

Commit f0e2817

Browse files
committed
test commit
1 parent 08d9610 commit f0e2817

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/__tests__/props.test.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
import { cleanup } from '@testing-library/react';
2-
import { setUpHook, initialStateValues } from './utils/testUtils';
1+
import { cleanup } from "@testing-library/react";
2+
import { setUpHook, initialStateValues } from "./utils/testUtils";
33

4-
describe('useKeyCapture', () => {
4+
// add more test
5+
6+
describe("useKeyCapture", () => {
57
afterEach(() => cleanup());
68

7-
describe('props', () => {
8-
it('are present', () => {
9+
describe("props", () => {
10+
it("are present", () => {
911
const { result } = setUpHook();
1012
expect(result.current.keyData).toBeTruthy();
1113
expect(result.current.resetKeyData).toBeTruthy();
1214
expect(result.current.getTargetProps).toBeTruthy();
1315
});
1416
});
1517

16-
describe('prop getters', () => {
17-
it('are returned as functions', () => {
18+
describe("prop getters", () => {
19+
it("are returned as functions", () => {
1820
const { result } = setUpHook();
1921
expect(result.current.getTargetProps).toBeInstanceOf(Function);
2022
expect(result.current.resetKeyData).toBeInstanceOf(Function);
2123
});
2224
});
2325

24-
it('should have have correct initial state', () => {
26+
it("should have have correct initial state", () => {
2527
const { result } = setUpHook();
2628

2729
expect(result.current.keyData).toEqual(initialStateValues);

0 commit comments

Comments
 (0)