File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ describe("Raw plugin", () => {
3030 const fileContent = fs . readFileSync ( path . resolve ( __dirname , "../src/index.ts" ) ) ;
3131 // @ts -ignore
3232 const generatedCodeContent = ( await import ( "./dist/test1.js" ) ) . getText ( ) ;
33+ // @ts -ignore
34+ const generatedCodeContent2 = ( await import ( "./dist/test1.js" ) ) . getText2 ( ) ;
3335 expect ( generatedCodeContent ) . toBe ( fileContent . toString ( "base64" ) ) ;
36+ expect ( generatedCodeContent2 . toString ( "base64" ) ) . toBe ( fileContent . toString ( "base64" ) ) ;
3437 } ) ;
3538
3639 test ( "throws error if no file is found" , async ( { expect } ) => {
Original file line number Diff line number Diff line change 11// test auto complete
22
33import text from "../src?base64" ;
4+ import text2 from "../src?binary" ;
45
56export const getText = ( ) => text ;
7+ export const getText2 = ( ) => text2 ;
Original file line number Diff line number Diff line change 11// test auto error
22
3- import text from "../src/my-file?raw " ;
3+ import text from "../src/my-file?buffer " ;
44
55export const getText = ( ) => text ;
You can’t perform that action at this time.
0 commit comments