Skip to content

Commit

Permalink
Fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
flasd committed Jan 13, 2018
1 parent 57a3e43 commit d51d7e3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/* eslint-env node,mocha */
import { expect } from 'chai';

import { classList, toggleClass, cL, tC } from './index';


describe('React classList Function', () => {

it('should be defined without any erros', () => {
expect(classList).to.be.a('function');
// eslint-disable-next-line no-unused-expressions
expect(classList).to.be.ok;
});

Expand Down Expand Up @@ -81,7 +82,7 @@ describe('React classList Function', () => {
it('should handle empty inputs gracefully', () => {
const expectedOutput = '';
const output = classList();

expect(output).to.equal(expectedOutput);
expect(output).to.be.a('string');
});
Expand All @@ -90,9 +91,9 @@ describe('React classList Function', () => {


describe('React toggleClass Function', () => {

it('should be defined without any erros', () => {
expect(classList).to.be.a('function');
// eslint-disable-next-line no-unused-expressions
expect(classList).to.be.ok;
});

Expand Down Expand Up @@ -122,23 +123,18 @@ describe('React toggleClass Function', () => {
expect(() => toggleClass(2, true)).to.throw();
expect(() => toggleClass('', '')).to.throw();
});

});

describe('React classList alias', () => {

it('should be defined and be the classList function', () => {
expect(cL).to.equal(classList);
expect(cL).to.be.a('function');
});

});

describe('React toggleClass alias', () => {

it('should be defined and be the toggleClass function', () => {
expect(tC).to.equal(toggleClass);
expect(tC).to.be.a('function');
});

});

0 comments on commit d51d7e3

Please sign in to comment.