@@ -20,7 +20,7 @@ describe("Validation", function() {
2020 config : { } ,
2121 message : [
2222 " - configuration misses the property 'entry'." ,
23- " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string]" ,
23+ " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function " ,
2424 " The entry point(s) of the compilation."
2525 ]
2626 } , {
@@ -30,13 +30,15 @@ describe("Validation", function() {
3030 } ,
3131 message : [
3232 " - configuration.entry should be one of these:" ,
33- " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string]" ,
33+ " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function " ,
3434 " The entry point(s) of the compilation." ,
3535 " Details:" ,
3636 " * configuration.entry should be an object." ,
3737 " * configuration.entry should not be empty." ,
3838 " * configuration.entry should be an array:" ,
39- " [non-empty string]"
39+ " [non-empty string]" ,
40+ " * configuration.entry should be an instance of function" ,
41+ " function returning an entry object or a promise.."
4042 ]
4143 } , {
4244 name : "empty entry bundle array" ,
@@ -47,7 +49,7 @@ describe("Validation", function() {
4749 } ,
4850 message : [
4951 " - configuration.entry should be one of these:" ,
50- " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string]" ,
52+ " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function " ,
5153 " The entry point(s) of the compilation." ,
5254 " Details:" ,
5355 " * configuration.entry['bundle'] should be a string." ,
@@ -56,7 +58,9 @@ describe("Validation", function() {
5658 " non-empty string | [non-empty string]" ,
5759 " * configuration.entry should be a string." ,
5860 " * configuration.entry should be an array:" ,
59- " [non-empty string]"
61+ " [non-empty string]" ,
62+ " * configuration.entry should be an instance of function" ,
63+ " function returning an entry object or a promise.."
6064 ]
6165 } , {
6266 name : "invalid instanceof" ,
@@ -79,12 +83,14 @@ describe("Validation", function() {
7983 } ,
8084 message : [
8185 " - configuration.entry should be one of these:" ,
82- " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string]" ,
86+ " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function " ,
8387 " The entry point(s) of the compilation." ,
8488 " Details:" ,
8589 " * configuration.entry should be an object." ,
8690 " * configuration.entry should be a string." ,
8791 " * configuration.entry[0] should be a string." ,
92+ " * configuration.entry should be an instance of function" ,
93+ " function returning an entry object or a promise.." ,
8894 " - configuration.output.filename should be a string."
8995 ]
9096 } , {
@@ -99,12 +105,14 @@ describe("Validation", function() {
99105 } ] ,
100106 message : [
101107 " - configuration[0].entry should be one of these:" ,
102- " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string]" ,
108+ " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function " ,
103109 " The entry point(s) of the compilation." ,
104110 " Details:" ,
105111 " * configuration[0].entry should be an object." ,
106112 " * configuration[0].entry should be a string." ,
107113 " * configuration[0].entry[0] should be a string." ,
114+ " * configuration[0].entry should be an instance of function" ,
115+ " function returning an entry object or a promise.." ,
108116 " - configuration[1].output.filename should be a string."
109117 ]
110118 } , {
0 commit comments