Skip to content

Commit

Permalink
feat: fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
danpeen committed Jan 24, 2024
1 parent cd5d9f5 commit 5030228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bridge-react/__tests__/reactBridge.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('react-bridge', () => {
).toThrow();
});

it('throws an error when react version is higher or equal than react v18', async () => {
it('will not throws the error when react version is higher or equal than react v18', async () => {
expect(() =>
reactBridge({
React: {
Expand All @@ -104,7 +104,7 @@ describe('react-bridge', () => {
ReactDOM,
rootComponent,
}),
).toThrow();
).not.toThrow();
});

it('do not throws an error when react version is v16 or v17', async () => {
Expand Down

0 comments on commit 5030228

Please sign in to comment.