@@ -8,92 +8,82 @@ module('Acceptance: title', function (hooks) {
88 setupApplicationTest ( hooks ) ;
99
1010 test ( 'the default configuration works' , async function ( assert ) {
11- assert . expect ( 1 ) ;
1211 await visit ( '/posts' ) ;
1312
14- assert . equal ( getPageTitle ( ) , 'Posts | My App' ) ;
13+ assert . strictEqual ( getPageTitle ( ) , 'Posts | My App' ) ;
1514 } ) ;
1615
1716 test ( 'the replace attribute works' , async function ( assert ) {
18- assert . expect ( 1 ) ;
1917 await visit ( '/about' ) ;
2018
21- assert . equal ( getPageTitle ( ) , 'About My App' ) ;
19+ assert . strictEqual ( getPageTitle ( ) , 'About My App' ) ;
2220 } ) ;
2321
2422 test ( 'custom separators work' , async function ( assert ) {
25- assert . expect ( 1 ) ;
2623 await visit ( '/about/authors' ) ;
2724
28- assert . equal ( getPageTitle ( ) , 'Authors > About My App' ) ;
25+ assert . strictEqual ( getPageTitle ( ) , 'Authors > About My App' ) ;
2926 } ) ;
3027
3128 test ( 'custom separators are inherited' , async function ( assert ) {
32- assert . expect ( 1 ) ;
3329 await visit ( '/about/authors/profile' ) ;
3430
35- assert . equal ( getPageTitle ( ) , 'Profile > Authors > About My App' ) ;
31+ assert . strictEqual ( getPageTitle ( ) , 'Profile > Authors > About My App' ) ;
3632 } ) ;
3733
3834 test ( 'multiple components in a row work' , async function ( assert ) {
39- assert . expect ( 1 ) ;
4035 await visit ( '/posts/rails-is-omakase' ) ;
4136
42- assert . equal ( getPageTitle ( ) , 'Rails is Omakase | Posts | My App' ) ;
37+ assert . strictEqual ( getPageTitle ( ) , 'Rails is Omakase | Posts | My App' ) ;
4338 } ) ;
4439
4540 test ( 'the prepend=false declaration works' , async function ( assert ) {
46- assert . expect ( 1 ) ;
4741 await visit ( '/authors/tomster' ) ;
4842
49- assert . equal ( getPageTitle ( ) , 'My App | Authors < Tomster' ) ;
43+ assert . strictEqual ( getPageTitle ( ) , 'My App | Authors < Tomster' ) ;
5044 } ) ;
5145
5246 test ( 'replace nested in prepends work' , async function ( assert ) {
53- assert . expect ( 1 ) ;
5447 await visit ( '/hollywood' ) ;
5548
56- assert . equal ( getPageTitle ( ) , 'Hollywood ★ Stars everywhere' ) ;
49+ assert . strictEqual ( getPageTitle ( ) , 'Hollywood ★ Stars everywhere' ) ;
5750 } ) ;
5851
5952 test ( 'multitoken titles work' , async function ( assert ) {
60- assert . expect ( 1 ) ;
6153 await visit ( '/feeds/tomster' ) ;
6254
63- assert . equal ( getPageTitle ( ) , 'Tomster (@tomster)' ) ;
55+ assert . strictEqual ( getPageTitle ( ) , 'Tomster (@tomster)' ) ;
6456 } ) ;
6557
6658 test ( 'loading substates are not shown' , async function ( assert ) {
67- assert . expect ( 3 ) ;
6859 await visit ( '/feeds/tomster' ) ;
69- assert . equal ( getPageTitle ( ) , 'Tomster (@tomster)' ) ;
60+ assert . strictEqual ( getPageTitle ( ) , 'Tomster (@tomster)' ) ;
7061
7162 await click ( '#zoey' ) ;
7263 await waitUntil ( ( ) => {
7364 return find ( 'div[data-test-substate-loading]' ) === null ;
7465 } ) ;
75- assert . equal ( getPageTitle ( ) , 'Zoey (@zoey)' ) ;
66+ assert . strictEqual ( getPageTitle ( ) , 'Zoey (@zoey)' ) ;
7667
7768 await click ( '#tomster' ) ;
7869 await waitUntil ( ( ) => {
7970 return find ( 'div[data-test-substate-loading]' ) === null ;
8071 } ) ;
81- assert . equal ( getPageTitle ( ) , 'Tomster (@tomster)' ) ;
72+ assert . strictEqual ( getPageTitle ( ) , 'Tomster (@tomster)' ) ;
8273 } ) ;
8374
8475 test ( 'front tokens work' , async function ( assert ) {
85- assert . expect ( 1 ) ;
8676 await visit ( '/reader' ) ;
8777
88- assert . equal ( getPageTitle ( ) , '(10) Reader | My App' ) ;
78+ assert . strictEqual ( getPageTitle ( ) , '(10) Reader | My App' ) ;
8979 } ) ;
9080
9181 test ( 'does not throw if no title element exist' , async function ( assert ) {
9282 document . head . querySelectorAll ( 'title' ) . forEach ( ( titleElement ) => {
9383 document . head . removeChild ( titleElement ) ;
9484 } ) ;
9585 await visit ( '/posts' ) ;
96- assert . equal ( getPageTitle ( ) , 'Posts | My App' ) ;
86+ assert . strictEqual ( getPageTitle ( ) , 'Posts | My App' ) ;
9787 } ) ;
9888
9989 test ( '`titleDidUpdate` hook is called with the new title' , async function ( assert ) {
@@ -108,9 +98,9 @@ module('Acceptance: title', function (hooks) {
10898 this . owner . register ( 'service:page-title' , ExtendedPageTitleService ) ;
10999
110100 await visit ( '/posts' ) ;
111- assert . equal ( currentTitle , 'Posts | My App' ) ;
101+ assert . strictEqual ( currentTitle , 'Posts | My App' ) ;
112102
113103 await visit ( '/posts/rails-is-omakase' ) ;
114- assert . equal ( currentTitle , 'Rails is Omakase | Posts | My App' ) ;
104+ assert . strictEqual ( currentTitle , 'Rails is Omakase | Posts | My App' ) ;
115105 } ) ;
116106} ) ;
0 commit comments