Skip to content

Test/development of existing test stubs#182

Open
pixxiec wants to merge 9 commits intodevfrom
test/development-of-existing-test-stubs
Open

Test/development of existing test stubs#182
pixxiec wants to merge 9 commits intodevfrom
test/development-of-existing-test-stubs

Conversation

@pixxiec
Copy link

@pixxiec pixxiec commented Dec 19, 2022

No description provided.


describe('Api Add Permission Params type', () => {
test('type can be instantiated', () => {
expect(isApiAddPermissionParams(aapp)).toBeTruthy()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These instantiation tests aren't needed, they don't any functionality

@@ -0,0 +1,7 @@
import { callApiNewUserWithToken } from './newUserWithToken'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's drop the unimplemented tests, they make it hard to spot the changes

'provider' in obj &&
obj.provider === 'custodial'
)
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed

)
}

const anuwtp: ApiNewUserWithTokenParams = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you expand these variable names out

provider: null,
}

describe('Api New User With Token Params type', () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is checking that a constant you defined satisfies the same constant shape you defined in the helper which will always return true. So this test doesn't test any functionality, can you remove it?

}

describe('Api New User With Token Body Params', () => {
test('type can be instantiated', () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as Comment above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants