chore: remove the needless thing

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-08-15 13:29:46 +02:00
parent 025b9fe183
commit f149bfc4f8
2 changed files with 7 additions and 6 deletions
@@ -62,11 +62,9 @@ describe('SignInPageBlueprint', () => {
const tester = createExtensionTester(extension);
const Element = tester.get(SignInPageBlueprint.dataRefs.component);
const Component = tester.get(SignInPageBlueprint.dataRefs.component);
expect(Element).toBeDefined();
renderInTestApp(<Element onSignInSuccess={() => {}} />);
renderInTestApp(<Component onSignInSuccess={() => {}} />);
await waitFor(() => {
expect(screen.getByTestId('mock-sign-in')).toBeInTheDocument();
@@ -339,6 +339,9 @@ describe('createExtensionTester', () => {
const extension = createExtension({
namespace: 'test',
name: 'e1',
inputs: {
ignored: createExtensionInput([stringDataRef]),
},
attachTo: { id: 'ignored', input: 'ignored' },
output: [coreExtensionData.reactElement],
factory: () => [coreExtensionData.reactElement(<div>bob</div>)],
@@ -346,8 +349,8 @@ describe('createExtensionTester', () => {
const extraExtension = createExtension({
namespace: 'test',
name: 'e1',
attachTo: { id: 'ignored', input: 'ignored' },
name: 'e2',
attachTo: { id: 'test/e1', input: 'ignored' },
output: [stringDataRef, internalRef.optional()],
factory: () => [stringDataRef('test-text')],
});