@@ -65,7 +65,7 @@ describe('Styling Schematic', () => {
65
65
66
66
expect ( getFileContent ( tree , stylingFile ) )
67
67
. not
68
- . toMatch ( new RegExp ( '@import "~nativescript- theme-core /css/core.light .css";' ) ) ;
68
+ . toMatch ( new RegExp ( '@import "~@ nativescript/ theme/css/core.css";' ) ) ;
69
69
} ) ;
70
70
} ) ;
71
71
@@ -85,7 +85,7 @@ describe('Styling Schematic', () => {
85
85
expect ( tree . exists ( `${ appPath } /${ sourceDir } /app.android.scss` ) ) ;
86
86
expect ( tree . exists ( `${ appPath } /${ sourceDir } /app.ios.scss` ) ) ;
87
87
expect ( tree . exists ( `${ appPath } /${ sourceDir } /_app-common.scss` ) ) ;
88
- expect ( tree . exists ( `${ appPath } /${ sourceDir } /_app-variables.scss` ) ) ;
88
+ expect ( tree . exists ( `${ appPath } /${ sourceDir } /_app-variables.scss` ) ) . toBe ( false ) ;
89
89
} ) ;
90
90
91
91
it ( 'should add scss dependencies to package.json' , ( ) => {
@@ -109,21 +109,11 @@ describe('Styling Schematic', () => {
109
109
110
110
expect ( getFileContent ( tree , `${ appPath } /${ sourceDir } /app.android.scss` ) )
111
111
. not
112
- . toMatch ( new RegExp ( '@import \'~nativescript-theme-core/scss/index\';' ) ) ;
113
- expect ( getFileContent ( tree , `${ appPath } /${ sourceDir } /app.android.scss` ) )
114
- . not
115
- . toMatch ( new RegExp ( '@import \'~nativescript-theme-core/scss/platforms/index.android\';' ) ) ;
112
+ . toMatch ( new RegExp ( '@import "~@nativescript/theme/css/core.css;' ) ) ;
116
113
117
114
expect ( getFileContent ( tree , `${ appPath } /${ sourceDir } /app.ios.scss` ) )
118
115
. not
119
- . toMatch ( new RegExp ( '@import \'~nativescript-theme-core/scss/index\';' ) ) ;
120
- expect ( getFileContent ( tree , `${ appPath } /${ sourceDir } /app.ios.scss` ) )
121
- . not
122
- . toMatch ( new RegExp ( '@import \'~nativescript-theme-core/scss/platforms/index.ios\';' ) ) ;
123
-
124
- expect ( getFileContent ( tree , `${ appPath } /${ sourceDir } /_app-variables.scss` ) )
125
- . not
126
- . toMatch ( new RegExp ( '@import \'~nativescript-theme-core/scss/light\';' ) ) ;
116
+ . toMatch ( new RegExp ( '@import "~@nativescript/theme/css/core.css";' ) ) ;
127
117
} ) ;
128
118
} ) ;
129
119
} ) ;
0 commit comments