test another message

This commit is contained in:
David Glasser
2014-09-10 19:42:51 -07:00
parent 06c9bcca95
commit ca7e56fd01

View File

@@ -159,6 +159,7 @@ Tinytest.add("constraint solver - no results", function (test) {
FAIL({ "bad-1": "1.0.0", "bad-2": "" },
/indirect@2\.0\.0 is not satisfied by 1.0.0[^]+bad-1[^]+bad-2/);
});
resolver = makeResolver([
["foo", "1.0.0"],
["foo", "1.1.0"],
@@ -170,6 +171,10 @@ Tinytest.add("constraint solver - no results", function (test) {
FAIL({foo: "2.0.0", bar: "1.0.0"},
/constraints on foo[^]+top level[^]+bar@1.0.0/);
});
testWithResolver(test, makeResolver([]), function (t, FAIL) {
FAIL({foo: "1.0.0"}, /unknown package: foo/);
});
});
Tinytest.add("constraint solver - previousSolution", function (test) {