@@ -27,6 +27,12 @@ main() {
27
27
expectNoValidationError (license);
28
28
});
29
29
30
+ integration ('has an UNLICENSE file' , () {
31
+ schedule (() => deleteEntry (path.join (sandboxDir, appPath, 'LICENSE' )));
32
+ d.file (path.join (appPath, 'UNLICENSE' ), '' ).create ();
33
+ expectNoValidationError (license);
34
+ });
35
+
30
36
integration ('has a prefixed LICENSE file' , () {
31
37
schedule (() => deleteEntry (path.join (sandboxDir, appPath, 'LICENSE' )));
32
38
d.file (path.join (appPath, 'MIT_LICENSE' ), '' ).create ();
@@ -47,6 +53,13 @@ main() {
47
53
expectValidationError (license);
48
54
});
49
55
56
+ integration ('has a prefixed UNLICENSE file' , () {
57
+ d.validPackage.create ();
58
+ schedule (() => deleteEntry (path.join (sandboxDir, appPath, 'LICENSE' )));
59
+ d.file (path.join (appPath, 'MIT_UNLICENSE' ), '' ).create ();
60
+ expectValidationError (license);
61
+ });
62
+
50
63
integration ('has a .gitignored LICENSE file' , () {
51
64
var repo = d.git (appPath, [d.file (".gitignore" , "LICENSE" )]);
52
65
d.validPackage.create ();
0 commit comments