Skip to content

Commit 8be31f9

Browse files
committed
more test
1 parent fc9ba55 commit 8be31f9

3 files changed

Lines changed: 30 additions & 17 deletions

File tree

tests/acceptance/auth-test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,14 @@ test('redirects to /login when I try to see content as not authenticated user',
2828
});
2929
});
3030
});
31+
32+
test('shows content when I`m authenticated', function() {
33+
expect(1);
34+
35+
authenticateSession();
36+
visit('/');
37+
38+
andThen(function() {
39+
equal(currentURL(), '/');
40+
});
41+
});

tests/unit/components/admin-letter-case-test.js

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import {
2+
moduleForComponent,
3+
test
4+
} from 'ember-qunit';
5+
6+
moduleForComponent('signout-link', 'SignoutLinkComponent', {
7+
});
8+
9+
test('it renders', function() {
10+
expect(2);
11+
12+
// creates the component instance
13+
var component = this.subject();
14+
equal(component._state, 'preRender');
15+
16+
// appends the component to the page
17+
this.append();
18+
equal(component._state, 'inDOM');
19+
});

0 commit comments

Comments
 (0)