wechaty-puppet
Version:
Abstract Puppet for Wechaty
18 lines (13 loc) • 459 B
text/typescript
import {
test,
} from 'tstest'
import type {
ReadyMixin,
} from './ready-mixin.js'
test('ProtectedPropertyReadyMixin', async t => {
type NotExistInMixin = Exclude<never, keyof InstanceType<ReadyMixin>>
type NotExistTest = NotExistInMixin extends never ? true : false
const noOneLeft: NotExistTest = true
t.ok(noOneLeft, 'should match Mixin properties for every protected property')
})