wechaty-puppet
Version:
Abstract Puppet for Wechaty
19 lines (14 loc) • 552 B
text/typescript
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')
})