@juzi/wechaty
Version:
Wechaty is a RPA SDK for Chatbot Makers.
16 lines (12 loc) • 558 B
text/typescript
import { test } from 'tstest'
import type {
PuppetMixin,
ProtectedPropertyPuppetMixin,
} from './puppet-mixin.js'
test('ProtectedPropertyPuppetMixin', async t => {
type NotExistInMixin = Exclude<ProtectedPropertyPuppetMixin, keyof InstanceType<PuppetMixin>>
type NotExistTest = NotExistInMixin extends never ? true : false
const noOneLeft: NotExistTest = true
t.ok(noOneLeft, 'should match Mixin properties for every protected property')
})