From dd767d6664580ef550cb651254c7f16dd5c3b247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Mon, 16 Mar 2015 17:20:34 +0100 Subject: [PATCH] Fix tests --- test/core/indexTest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/core/indexTest.js b/test/core/indexTest.js index 93b0824..757c1aa 100644 --- a/test/core/indexTest.js +++ b/test/core/indexTest.js @@ -54,7 +54,7 @@ describe('index.js', function() { data.toolsResults.phantomas.should.have.a.property('offenders').that.is.an('object'); data.toolsResults.phantomas.offenders.should.have.a.property('DOMelementMaxDepth'); data.toolsResults.phantomas.offenders.DOMelementMaxDepth.should.have.length(1); - data.toolsResults.phantomas.offenders.DOMelementMaxDepth[0].should.equal('body > h1[1]'); + data.toolsResults.phantomas.offenders.DOMelementMaxDepth[0].should.equal('body > h1[0]'); // Test rules data.should.have.a.property('rules').that.is.an('object'); @@ -79,7 +79,7 @@ describe('index.js', function() { "count": 1, "tree": { "body": { - "h1[1]": 1 + "h1[0]": 1 } } }