Skip to content

Commit

Permalink
adds tests for more invalid selectors #2
Browse files Browse the repository at this point in the history
  • Loading branch information
GGAlanSmithee committed Oct 31, 2015
1 parent 478af18 commit 0b67887
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/get-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ import getType, { SelectorType } from '../src/core/selector-type';

describe('getType(selector)', function() {
describe('Selectors', () => {
it('Invalid selector (E )', () => {
expect(getType('div ')).to.equal(SelectorType.Invalid);
});

it('Invalid selector ( E)', () => {
expect(getType(' div')).to.equal(SelectorType.Invalid);
});

it('Invalid selector (E E)', () => {
expect(getType('div span')).to.equal(SelectorType.Invalid);
});
Expand Down

0 comments on commit 0b67887

Please sign in to comment.