-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move testutils to test-utils folder * Add mock data * Add analytics provider to test renderer * Add hooks.test.ts, test useUniqueFormId * Add tests for mapFormPropsToOperation and useInitialValues
- Loading branch information
1 parent
4e7ba06
commit bc0d7cc
Showing
14 changed files
with
4,072 additions
and
14 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
airbyte-webapp/src/components/ArrayOfObjectsEditor/components/EditorHeader.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
airbyte-webapp/src/hooks/services/FormChangeTracker/hooks.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { renderHook } from "@testing-library/react-hooks"; | ||
|
||
import { useUniqueFormId } from "./hooks"; | ||
|
||
describe("#useUniqueFormId", () => { | ||
it("should use what is passed into it", () => { | ||
const { | ||
result: { current }, | ||
} = renderHook(() => useUniqueFormId("asdf")); | ||
expect(current).toBe("asdf"); | ||
}); | ||
|
||
it("should generate an id like /form_/", () => { | ||
const { | ||
result: { current }, | ||
} = renderHook(useUniqueFormId); | ||
expect(current).toMatch(/form_/); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
airbyte-webapp/src/packages/cloud/views/auth/OAuthLogin/OAuthLogin.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...webapp/src/pages/ConnectionPage/pages/ConnectionItemPage/components/SettingsView.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.