@@ -84,6 +84,60 @@ describe('grunt', function() {
8484 } ) ;
8585 } ) ;
8686
87+ // Ensure a custom library file is available under build.
88+ var librariesBuildDest = ( drupalCore == '8' ) ? 'build/html/libraries/example_lib/example.md' : 'build/html/sites/all/libraries/example_lib/example.md' ;
89+ it ( 'custom library file should exist in build' , function ( done ) {
90+ fs . exists ( librariesBuildDest , function ( exists ) {
91+ assert . ok ( exists ) ;
92+ done ( ) ;
93+ } ) ;
94+ } ) ;
95+
96+ // Ensure a custom module file is available under build.
97+ var modulesBuildDest = ( drupalCore == '8' ) ? 'build/html/modules/custom/test.php' : 'build/html/sites/all/modules/custom/test.php' ;
98+ it ( 'custom module file should exist in build' , function ( done ) {
99+ fs . exists ( modulesBuildDest , function ( exists ) {
100+ assert . ok ( exists ) ;
101+ done ( ) ;
102+ } ) ;
103+ } ) ;
104+
105+ // Ensure a custom theme file is available under build.
106+ var themesBuildDest = ( drupalCore == '8' ) ? 'build/html/themes/custom/example_theme/config.rb' : 'build/html/sites/all/themes/custom/example_theme/config.rb' ;
107+ it ( 'custom theme file should exist in build' , function ( done ) {
108+ fs . exists ( themesBuildDest , function ( exists ) {
109+ assert . ok ( exists ) ;
110+ done ( ) ;
111+ } ) ;
112+ } ) ;
113+
114+ // Ensure a custom library file is available under package.
115+ var librariesPackageDest = ( drupalCore == '8' ) ? 'build/packages/package/libraries/example_lib/example.md' : 'build/packages/package/sites/all/libraries/example_lib/example.md' ;
116+ it ( 'custom library file should exist in package' , function ( done ) {
117+ fs . exists ( librariesPackageDest , function ( exists ) {
118+ assert . ok ( exists ) ;
119+ done ( ) ;
120+ } ) ;
121+ } ) ;
122+
123+ // Ensure a custom module file is available under package.
124+ var modulesPackageDest = ( drupalCore == '8' ) ? 'build/packages/package/modules/custom/test.php' : 'build/packages/package/sites/all/modules/custom/test.php' ;
125+ it ( 'custom module file should exist in package' , function ( done ) {
126+ fs . exists ( modulesPackageDest , function ( exists ) {
127+ assert . ok ( exists ) ;
128+ done ( ) ;
129+ } ) ;
130+ } ) ;
131+
132+ // Ensure a custom theme file is available under package.
133+ var themesPackageDest = ( drupalCore == '8' ) ? 'build/packages/package/themes/custom/example_theme/config.rb' : 'build/packages/package/sites/all/themes/custom/example_theme/config.rb' ;
134+ it ( 'custom theme file should exist in package' , function ( done ) {
135+ fs . exists ( themesPackageDest , function ( exists ) {
136+ assert . ok ( exists ) ;
137+ done ( ) ;
138+ } ) ;
139+ } ) ;
140+
87141 // Ensure the build/html/sites/all/themes/custom/example_theme/stylesheets/screen.css
88142 // file exists, which should be created by compass.
89143 var sassDest = ( drupalCore == '8' ) ? 'build/html/themes/custom/example_theme/stylesheets/screen.css' : 'build/html/sites/all/themes/custom/example_theme/stylesheets/screen.css' ;
0 commit comments