Skip to content

Commit 4842136

Browse files
committed
Prepare for 0.1.5
1 parent be72969 commit 4842136

File tree

7 files changed

+8
-65
lines changed

7 files changed

+8
-65
lines changed

.gitmodules

Lines changed: 0 additions & 9 deletions
This file was deleted.

benchmark/README.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

benchmark/kit-example

Lines changed: 0 additions & 1 deletion
This file was deleted.

benchmark/realworld

Lines changed: 0 additions & 1 deletion
This file was deleted.

benchmark/realworld-with-glory

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/src/routes/__layout.svelte

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<style>
2+
.hello{
3+
color: red;
4+
font-size: 12px;
5+
}
6+
</style>
7+
8+
<slot></slot>

test/transformer.spec.js

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -39,39 +39,3 @@ describe("when transforming html", function () {
3939
);
4040
});
4141
});
42-
43-
describe("when transforming CSS", function () {
44-
const componentCode = `
45-
<style>
46-
.foo{
47-
color: red;
48-
}
49-
</style>
50-
<p class="foo">Hello world<p/>`;
51-
52-
const filename = "/src/index.svelte";
53-
54-
const classCache = {
55-
"/src/__layout.svelte": { bar: { a: true } },
56-
[filename]: { foo: { a: true } },
57-
};
58-
59-
const declarationCache = {
60-
none: { "color:red;": "a" },
61-
};
62-
63-
describe("when identical declaration is found in __layout.svelte", function () {
64-
const ast = parse(componentCode, { filename });
65-
const transformer = createTransformer(componentCode, filename).transformCss(
66-
ast.css,
67-
declarationCache,
68-
classCache,
69-
);
70-
71-
it("should remove that declaration found in current component", async () => {
72-
expect(transformer.toString().replace(/\s/g, "")).toBe(
73-
`<style></style><p class="foo">Hello world<p/>`.replace(/\s/g, "")
74-
);
75-
});
76-
});
77-
});

0 commit comments

Comments
 (0)