fix(maven): match declarations in the project namespace (#12672)

This commit is contained in:
morluto authored and GitHub committed 2026-11-20 01:54:59 +00:00
1 parent 070d6420ec
commit 0ab693fe81
4 files changed
+27 -15

No files matched your search

+5 -5
View File
@@ -623,11 +623,11 @@ it("refuses a document type declaration", () => {
);
});
it("refuses XML that is not a Maven project", () => {
expectFailure(
"<module><artifactId>demo</artifactId></module>",
"unsupported",
);
it.each([
"<module><artifactId>demo</artifactId></module>",
'<project xmlns:ext="urn:example"><ext:artifactId>demo</ext:artifactId></project>',
])("refuses XML that is not a Maven project: %s", (source) => {
expectFailure(source, "unsupported");
});
it("refuses a POM with two top-level dependencies blocks", () => {