This repository was archived by the owner on Jun 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
tests/stubs/test_modules/@bar.foo/animations/browser Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export class FlatAPItest {
102102 }
103103
104104 "Should bundle a partial require on a scoped repository" ( ) {
105- // gets a module from src/tests/stubs/test_modules/fbjs
105+ // gets a module from src/tests/stubs/test_modules/@bar
106106 return createOptimisedBundleEnv ( {
107107 stubs : true ,
108108 project : {
@@ -117,4 +117,20 @@ export class FlatAPItest {
117117 should ( first ) . deepEqual ( { something : { hello : '@bar/animations/browser' } } )
118118 } ) ;
119119 }
120+
121+ "Should bundle a partial require on a scoped (with valid naming) repository" ( ) {
122+ // gets a module from src/tests/stubs/test_modules/@bar .foo
123+ return createOptimisedBundleEnv ( {
124+ stubs : true ,
125+ project : {
126+ files : {
127+ "index.js" : `exports.something = require("@bar.foo/animations/browser")`
128+ } ,
129+ instructions : "index.js" ,
130+ } ,
131+ } ) . then ( ( result ) => {
132+ const first = result . window . $fsx . r ( 0 ) ;
133+ should ( first ) . deepEqual ( { something : { hello : '@bar/animations/browser' } } )
134+ } ) ;
135+ }
120136}
Original file line number Diff line number Diff line change 1+ module . exports = { hello : "@bar/animations/browser" }
You can’t perform that action at this time.
0 commit comments