add a Jasmine toBeA matcher

This commit is contained in:
Éric Lemoine
2012-06-20 11:44:23 +02:00
parent 02840ad573
commit a7a86bb169
7 changed files with 89 additions and 78 deletions

View File

@@ -3,7 +3,7 @@ describe("ol.Tile", function() {
describe("creating a tile", function() {
it("creates a tile instance", function() {
var tile = new ol.Tile();
expect(tile instanceof ol.Tile).toBe(true);
expect(tile).toBeA(ol.Tile);
});
it("sets an image node in the instance", function() {
var tile = new ol.Tile();