We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03f71bd commit f1e7037Copy full SHA for f1e7037
fluent-dedent/test/blank_test.js
@@ -34,4 +34,31 @@ suite("blank lines", function() {
34
"foo\n"
35
);
36
});
37
+
38
+ test("containing the same amount of spaces as the common indent", function() {
39
+ assert.equal(
40
+ ftl`
41
42
+ `,
43
+ ""
44
+ );
45
+ });
46
47
+ test("containing too few spaces", function() {
48
+ assert.throws(
49
+ () => ftl`
50
51
52
+ /Insufficient indentation in line 0/
53
54
55
56
+ test("containing too many spaces", function() {
57
58
59
60
61
+ " "
62
63
64
0 commit comments