Skip to content

Commit

Permalink
add svg compiler tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Aug 4, 2017
1 parent 25f32f3 commit 1facdc1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/core/compiler/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,12 @@ describe("Compiler", function() {
});
expect(el.firstChild.textContent).to.equal("Moon");
});

it("should compile and mark SVG elements", function() {
var el = createTestElement("compilerSVG", '<svg></svg>');
var app = new Moon({
el: "#compilerSVG"
});
expect(app.render().children[0].meta.isSVG).to.equal(true);
});
});

0 comments on commit 1facdc1

Please sign in to comment.