Swap to using eslint (#435)
* WIP * ... and more * yet more... * and examples (more-or-less) fixed * Only problematic promisify left... * Last batch * rm config header * Update * Use Record * Bumps
This commit is contained in:
@@ -4,26 +4,26 @@
|
||||
|
||||
import { isString } from '.';
|
||||
|
||||
describe('isString', () => {
|
||||
it('returns true on valid strings', () => {
|
||||
describe('isString', (): void => {
|
||||
it('returns true on valid strings', (): void => {
|
||||
expect(
|
||||
isString('123')
|
||||
).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns true on empty strings', () => {
|
||||
it('returns true on empty strings', (): void => {
|
||||
expect(
|
||||
isString('')
|
||||
).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns true on String object', () => {
|
||||
it('returns true on String object', (): void => {
|
||||
expect(
|
||||
isString(new String('foo'))
|
||||
isString(String('foo'))
|
||||
).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns false on invalid numbers', () => {
|
||||
it('returns false on invalid numbers', (): void => {
|
||||
expect(
|
||||
isString(2)
|
||||
).toEqual(false);
|
||||
|
||||
Reference in New Issue
Block a user