feat: support is.blob

This commit is contained in:
eric_wang 2022-02-26 04:51:19 +08:00
parent 6cbefb9af7
commit 07261a9760
7 changed files with 48 additions and 0 deletions

View file

@ -170,6 +170,14 @@ const types = new Map<string, Test>([
],
typename: 'Buffer'
}],
['blob', {
is: is.blob,
assert: assert.blob,
fixtures: [
new window.Blob()
],
typename: 'Blob'
}],
['object', {
is: is.object,
assert: assert.object,
@ -683,6 +691,10 @@ test('is.buffer', t => {
testType(t, 'buffer');
});
test('is.blob', t => {
testType(t, 'blob');
});
test('is.object', t => {
const testData = types.get('object');