mirror of
https://github.com/tenrok/axios.git
synced 2026-05-24 14:04:14 +03:00
13 lines
372 B
JavaScript
13 lines
372 B
JavaScript
var isCancel = require('../../../lib/cancel/isCancel');
|
|
var Cancel = require('../../../lib/cancel/Cancel');
|
|
|
|
describe('isCancel', function() {
|
|
it('returns true if value is a Cancel', function() {
|
|
expect(isCancel(new Cancel())).toBe(true);
|
|
});
|
|
|
|
it('returns false if value is not a Cancel', function() {
|
|
expect(isCancel({ foo: 'bar' })).toBe(false);
|
|
});
|
|
});
|