We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e22897a commit dc8c0c2Copy full SHA for dc8c0c2
1 file changed
test/2.1.x/union.ts
@@ -238,6 +238,15 @@ describe.concurrent('union', () => {
238
}
239
)
240
})
241
+
242
+ it('readonly', () => {
243
+ assert.strictEqual(t.getTags(t.readonly(t.strict({ a: t.string }))), t.emptyTags)
244
+ assert.deepStrictEqual(t.getTags(t.readonly(t.strict({ tag: t.literal('a') }))), { tag: ['a'] })
245
+ assert.deepStrictEqual(t.getTags(t.readonly(t.strict({ tag: t.literal('a'), type: t.literal('b') }))), {
246
+ tag: ['a'],
247
+ type: ['b']
248
+ })
249
250
251
252
it('getIndex', () => {
0 commit comments