@@ -20,7 +20,7 @@ describe("Validation", function() {
2020 config : { } ,
2121 message : [
2222 " - configuration misses the property 'entry'." ,
23- " object { <key>: string | [string] } | string | [string]" ,
23+ " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string]" ,
2424 " The entry point(s) of the compilation."
2525 ]
2626 } , {
@@ -30,8 +30,13 @@ describe("Validation", function() {
3030 } ,
3131 message : [
3232 " - configuration.entry should be one of these:" ,
33- " object { <key>: string | [string] } | string | [string]" ,
34- " The entry point(s) of the compilation."
33+ " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string]" ,
34+ " The entry point(s) of the compilation." ,
35+ " Details:" ,
36+ " * configuration.entry should be an object." ,
37+ " * configuration.entry should not be empty." ,
38+ " * configuration.entry should be an array:" ,
39+ " [non-empty string]"
3540 ]
3641 } , {
3742 name : "invalid instanceof" ,
@@ -53,10 +58,13 @@ describe("Validation", function() {
5358 }
5459 } ,
5560 message : [
56- " - configuration.entry[0] should be a string." ,
5761 " - configuration.entry should be one of these:" ,
58- " object { <key>: string | [string] } | string | [string]" ,
62+ " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string]" ,
5963 " The entry point(s) of the compilation." ,
64+ " Details:" ,
65+ " * configuration.entry should be an object." ,
66+ " * configuration.entry should be a string." ,
67+ " * configuration.entry[0] should be a string." ,
6068 " - configuration.output.filename should be a string."
6169 ]
6270 } , {
@@ -70,10 +78,13 @@ describe("Validation", function() {
7078 }
7179 } ] ,
7280 message : [
73- " - configuration[0].entry[0] should be a string." ,
7481 " - configuration[0].entry should be one of these:" ,
75- " object { <key>: string | [string] } | string | [string]" ,
82+ " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string]" ,
7683 " The entry point(s) of the compilation." ,
84+ " Details:" ,
85+ " * configuration[0].entry should be an object." ,
86+ " * configuration[0].entry should be a string." ,
87+ " * configuration[0].entry[0] should be a string." ,
7788 " - configuration[1].output.filename should be a string."
7889 ]
7990 } , {
0 commit comments