mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
15bf9563f6
Co-authored-by: zhangh-cs <zhangh-cs@glodon.com> Co-authored-by: Jay <jasonsaayman@gmail.com>
11 lines
283 B
JavaScript
11 lines
283 B
JavaScript
import {kindOfTest} from '../../../lib/utils';
|
|
|
|
describe('utils::kindOfTest', function () {
|
|
it('should return true if the type is matched', function () {
|
|
const test = kindOfTest('number');
|
|
|
|
expect(test(123)).toEqual(true);
|
|
expect(test('123')).toEqual(false);
|
|
});
|
|
});
|