Skip to content

Commit

Permalink
test: add snake :hover and :focus tests
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Mar 24, 2018
1 parent 4bacb7e commit 0cf82da
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion addon/__tests__/snake.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,42 @@ describe('snake', function () {
});
});

it('.relative', function () {
it('.rel', function () {
var nano = createNano();

expect(nano.s.rel.obj).toEqual({
position: 'relative',
});
});

it('.abs', function () {
var nano = createNano();

expect(nano.s.abs.obj).toEqual({
position: 'absolute',
});
});

it('.hover', function () {
var nano = createNano();

expect(nano.s.hover(nano.s.abs).obj).toEqual({
':hover': {
position: 'absolute',
}
});
});

it('.focus', function () {
var nano = createNano();

expect(nano.s.focus(nano.s.abs).obj).toEqual({
':focus': {
position: 'absolute',
}
});
});

describe('accents', function () {
it('semantic', function () {
var nano = createNano();
Expand Down

0 comments on commit 0cf82da

Please sign in to comment.