Skip to content

Commit 6b1dc2e

Browse files
committed
Add another getResolvedUrl test case
1 parent b0d5425 commit 6b1dc2e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/test-css-variables-collector-plugin.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,14 @@ describe("CSSVariablesCollectorPlugin.getResolvedUrl", function() {
6767
null
6868
);
6969
});
70+
it("Error: should return null when libraryName is not given", function() {
71+
assert.strictEqual(
72+
CSSVariablesCollectorPlugin.getResolvedUrl({
73+
rawUrl: "img/foo.png",
74+
filename: "/resources/sap/ui/foo/themes/base/Foo.less",
75+
libraryName: undefined
76+
}),
77+
null
78+
);
79+
});
7080
});

0 commit comments

Comments
 (0)