Skip to content

Commit 4ac2bab

Browse files
committed
Add test for out of emoji error
1 parent 298ecfe commit 4ac2bab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/interpolateName.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ describe("interpolateName()", () => {
6666
assert.equal(result1, result2);
6767
});
6868

69+
it("should throw error when out of emoji", () => {
70+
assert.throws(function() { loaderUtils.interpolateName.apply(loaderUtils, [{}, "[emoji:5000]", { content: "foo" }]) }, Error, "Ran out of emoji");
71+
});
72+
6973
context("no loader context", () => {
7074
const loaderContext = {};
7175
run([

0 commit comments

Comments
 (0)