@@ -3,6 +3,7 @@ import { ReleaseService } from "../app/services/release.service";
33describe ( 'Release notes: ' , function ( ) {
44 var releaseService : ReleaseService = new ReleaseService ( ) ;
55 var data : string ;
6+ var dataUpperCase : string ;
67 var isReleaseFileExist : boolean ;
78
89 it ( "Release notes is exist." , function ( ) {
@@ -12,7 +13,8 @@ describe('Release notes: ', function () {
1213
1314 it ( "Read most recent release notes." , function ( ) {
1415 if ( ! ! isReleaseFileExist ) {
15- data = releaseService . readReleaseFile ( )
16+ data = releaseService . readReleaseFile ( ) ;
17+ dataUpperCase = data . toUpperCase ( ) ;
1618 expect ( data ) . not . equal ( null ) ;
1719 expect ( data ) . not . equal ( undefined ) ;
1820 expect ( data ) . not . equal ( "" ) ;
@@ -56,17 +58,17 @@ describe('Release notes: ', function () {
5658
5759 it ( "Not Include IOS keyword." , function ( ) {
5860 if ( ! ! data ) {
59- expect ( data . toUpperCase ( ) ) . not . contain ( "IOS" ) ;
60- expect ( data . toUpperCase ( ) ) . not . contain ( "APPLE" ) ;
61+ expect ( dataUpperCase ) . not . contain ( "IOS" ) ;
62+ expect ( dataUpperCase ) . not . contain ( "APPLE" ) ;
6163 }
6264 } ) ;
6365 } ) ;
6466
6567 describe ( '(IOS Platform)' , function ( ) {
6668 it ( "Not Include android keyword." , function ( ) {
6769 if ( ! ! data ) {
68- expect ( data . toUpperCase ( ) ) . not . contain ( "ANDROID" ) ;
69- expect ( data . toUpperCase ( ) ) . not . contain ( "GOOGLE" ) ;
70+ expect ( dataUpperCase ) . not . contain ( "ANDROID" ) ;
71+ expect ( dataUpperCase ) . not . contain ( "GOOGLE" ) ;
7072 }
7173 } ) ;
7274 } ) ;
0 commit comments