-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add mixin protected properties tests (#155)
- Loading branch information
Showing
26 changed files
with
356 additions
and
114 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env -S node --loader ts-node/esm | ||
|
||
import { | ||
test, | ||
} from 'tstest' | ||
|
||
import type { | ||
CacheMixin, | ||
ProtectedPropertyCacheMixin, | ||
} from './cache-mixin.js' | ||
|
||
test('ProtectedPropertyCacheMixin', async t => { | ||
type NotExistInMixin = Exclude<ProtectedPropertyCacheMixin, keyof InstanceType<CacheMixin>> | ||
type NotExistTest = NotExistInMixin extends never ? true : false | ||
|
||
const noOneLeft: NotExistTest = true | ||
t.ok(noOneLeft, 'should match Mixin properties for every protected property') | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env -S node --loader ts-node/esm | ||
|
||
import { | ||
test, | ||
} from 'tstest' | ||
|
||
import type { | ||
ContactMixin, | ||
ProtectedPropertyContactMixin, | ||
} from './contact-mixin.js' | ||
|
||
test('ProtectedPropertyContactMixin', async t => { | ||
type NotExistInMixin = Exclude<ProtectedPropertyContactMixin, keyof InstanceType<ContactMixin>> | ||
type NotExistTest = NotExistInMixin extends never ? true : false | ||
|
||
const noOneLeft: NotExistTest = true | ||
t.ok(noOneLeft, 'should match Mixin properties for every protected property') | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env -S node --loader ts-node/esm | ||
|
||
import { | ||
test, | ||
} from 'tstest' | ||
|
||
import type { | ||
FriendshipMixin, | ||
ProtectedPropertyFriendshipMixin, | ||
} from './friendship-mixin.js' | ||
|
||
test('ProtectedPropertyFriendshipMixin', async t => { | ||
type NotExistInMixin = Exclude<ProtectedPropertyFriendshipMixin, keyof InstanceType<FriendshipMixin>> | ||
type NotExistTest = NotExistInMixin extends never ? true : false | ||
|
||
const noOneLeft: NotExistTest = true | ||
t.ok(noOneLeft, 'should match Mixin properties for every protected property') | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env -S node --loader ts-node/esm | ||
|
||
import { | ||
test, | ||
} from 'tstest' | ||
|
||
import type { | ||
LoginMixin, | ||
ProtectedPropertyLoginMixin, | ||
} from './login-mixin.js' | ||
|
||
test('ProtectedPropertyLoginMixin', async t => { | ||
type NotExistInMixin = Exclude<ProtectedPropertyLoginMixin, keyof InstanceType<LoginMixin>> | ||
type NotExistTest = NotExistInMixin extends never ? true : false | ||
|
||
const noOneLeft: NotExistTest = true | ||
t.ok(noOneLeft, 'should match Mixin properties for every protected property') | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env -S node --loader ts-node/esm | ||
|
||
import { | ||
test, | ||
} from 'tstest' | ||
|
||
import type { | ||
MemoryMixin, | ||
ProtectedPropertyMemoryMixin, | ||
} from './memory-mixin.js' | ||
|
||
test('ProtectedPropertyMemoryMixin', async t => { | ||
type NotExistInMixin = Exclude<ProtectedPropertyMemoryMixin, keyof InstanceType<MemoryMixin>> | ||
type NotExistTest = NotExistInMixin extends never ? true : false | ||
|
||
const noOneLeft: NotExistTest = true | ||
t.ok(noOneLeft, 'should match Mixin properties for every protected property') | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env -S node --loader ts-node/esm | ||
|
||
import { | ||
test, | ||
} from 'tstest' | ||
|
||
import type { | ||
MessageMixin, | ||
ProtectedPropertyMessageMixin, | ||
} from './message-mixin.js' | ||
|
||
test('ProtectedPropertyMessageMixin', async t => { | ||
type NotExistInMixin = Exclude<ProtectedPropertyMessageMixin, keyof InstanceType<MessageMixin>> | ||
type NotExistTest = NotExistInMixin extends never ? true : false | ||
|
||
const noOneLeft: NotExistTest = true | ||
t.ok(noOneLeft, 'should match Mixin properties for every protected property') | ||
}) |
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
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,18 @@ | ||
#!/usr/bin/env -S node --loader ts-node/esm | ||
|
||
import { | ||
test, | ||
} from 'tstest' | ||
|
||
import type { | ||
RoomInvitationMixin, | ||
ProtectedPropertyRoomInvitationMixin, | ||
} from './room-invitation-mixin.js' | ||
|
||
test('ProtectedPropertyRoomInvitationMixin', async t => { | ||
type NotExistInMixin = Exclude<ProtectedPropertyRoomInvitationMixin, keyof InstanceType<RoomInvitationMixin>> | ||
type NotExistTest = NotExistInMixin extends never ? true : false | ||
|
||
const noOneLeft: NotExistTest = true | ||
t.ok(noOneLeft, 'should match Mixin properties for every protected property') | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env -S node --loader ts-node/esm | ||
|
||
import { | ||
test, | ||
} from 'tstest' | ||
|
||
import type { | ||
RoomMemberMixin, | ||
ProtectedPropertyRoomMemberMixin, | ||
} from './room-member-mixin.js' | ||
|
||
test('ProtectedPropertyRoomMemberMixin', async t => { | ||
type NotExistInMixin = Exclude<ProtectedPropertyRoomMemberMixin, keyof InstanceType<RoomMemberMixin>> | ||
type NotExistTest = NotExistInMixin extends never ? true : false | ||
|
||
const noOneLeft: NotExistTest = true | ||
t.ok(noOneLeft, 'should match Mixin properties for every protected property') | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env -S node --loader ts-node/esm | ||
|
||
import { | ||
test, | ||
} from 'tstest' | ||
|
||
import type { | ||
RoomMixin, | ||
ProtectedPropertyRoomMixin, | ||
} from './room-mixin.js' | ||
|
||
test('ProtectedPropertyRoomMixin', async t => { | ||
type NotExistInMixin = Exclude<ProtectedPropertyRoomMixin, keyof InstanceType<RoomMixin>> | ||
type NotExistTest = NotExistInMixin extends never ? true : false | ||
|
||
const noOneLeft: NotExistTest = true | ||
t.ok(noOneLeft, 'should match Mixin properties for every protected property') | ||
}) |
Oops, something went wrong.