@@ -8,7 +8,7 @@ import dartSass from 'sass';
88import {
99 compile ,
1010 getTestId ,
11- getCode ,
11+ getCodeFromBundle ,
1212 getImplementationByName ,
1313 normalizeError ,
1414} from './helpers' ;
@@ -32,9 +32,9 @@ describe('implementation option', () => {
3232 implementation : getImplementationByName ( implementationName ) ,
3333 } ;
3434 const stats = await compile ( testId , { loader : { options } } ) ;
35- const { content , sourceMap } = getCode ( stats ) ;
35+ const { css , sourceMap } = getCodeFromBundle ( stats ) ;
3636
37- expect ( content ) . toBeDefined ( ) ;
37+ expect ( css ) . toBeDefined ( ) ;
3838 expect ( sourceMap ) . toBeUndefined ( ) ;
3939
4040 expect ( stats . compilation . warnings ) . toMatchSnapshot ( 'warnings' ) ;
@@ -57,9 +57,9 @@ describe('implementation option', () => {
5757 const testId = getTestId ( 'language' , 'scss' ) ;
5858 const options = { } ;
5959 const stats = await compile ( testId , { loader : { options } } ) ;
60- const { content , sourceMap } = getCode ( stats ) ;
60+ const { css , sourceMap } = getCodeFromBundle ( stats ) ;
6161
62- expect ( content ) . toBeDefined ( ) ;
62+ expect ( css ) . toBeDefined ( ) ;
6363 expect ( sourceMap ) . toBeUndefined ( ) ;
6464
6565 expect ( stats . compilation . warnings ) . toMatchSnapshot ( 'warnings' ) ;
@@ -80,7 +80,7 @@ describe('implementation option', () => {
8080 try {
8181 const stats = await compile ( testId , { loader : { options } } ) ;
8282
83- getCode ( stats ) ;
83+ getCodeFromBundle ( stats ) ;
8484 } catch ( error ) {
8585 expect ( normalizeError ( error ) ) . toMatchSnapshot ( ) ;
8686 }
@@ -97,7 +97,7 @@ describe('implementation option', () => {
9797 try {
9898 const stats = await compile ( testId , { loader : { options } } ) ;
9999
100- getCode ( stats ) ;
100+ getCodeFromBundle ( stats ) ;
101101 } catch ( error ) {
102102 expect ( normalizeError ( error ) ) . toMatchSnapshot ( ) ;
103103 }
@@ -114,7 +114,7 @@ describe('implementation option', () => {
114114 try {
115115 const stats = await compile ( testId , { loader : { options } } ) ;
116116
117- getCode ( stats ) ;
117+ getCodeFromBundle ( stats ) ;
118118 } catch ( error ) {
119119 expect ( normalizeError ( error ) ) . toMatchSnapshot ( ) ;
120120 }
@@ -129,7 +129,7 @@ describe('implementation option', () => {
129129 try {
130130 const stats = await compile ( testId , { loader : { options } } ) ;
131131
132- getCode ( stats ) ;
132+ getCodeFromBundle ( stats ) ;
133133 } catch ( error ) {
134134 expect ( normalizeError ( error ) ) . toMatchSnapshot ( ) ;
135135 }
@@ -144,7 +144,7 @@ describe('implementation option', () => {
144144 try {
145145 const stats = await compile ( testId , { loader : { options } } ) ;
146146
147- getCode ( stats ) ;
147+ getCodeFromBundle ( stats ) ;
148148 } catch ( error ) {
149149 expect ( normalizeError ( error ) ) . toMatchSnapshot ( ) ;
150150 }
@@ -160,7 +160,7 @@ describe('implementation option', () => {
160160 try {
161161 const stats = await compile ( testId , { loader : { options } } ) ;
162162
163- getCode ( stats ) ;
163+ getCodeFromBundle ( stats ) ;
164164 } catch ( error ) {
165165 expect ( normalizeError ( error ) ) . toMatchSnapshot ( ) ;
166166 }
@@ -191,7 +191,7 @@ describe('implementation option', () => {
191191 try {
192192 const stats = await compile ( testId , { loader : { options } } ) ;
193193
194- getCode ( stats ) ;
194+ getCodeFromBundle ( stats ) ;
195195 } catch ( error ) {
196196 expect ( error ) . toMatchSnapshot ( ) ;
197197 }
0 commit comments