From 86e9cac0b809b3a1dcc1cd3291859b7d784b32ef Mon Sep 17 00:00:00 2001 From: Andy Edwards Date: Tue, 9 Apr 2024 21:32:29 -0500 Subject: [PATCH] test: fix fillParent test --- package.json | 2 +- test/index.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f1d5b7e..dd61788 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-view-slider", - "version": "0.0.0-development", + "version": "4.6.1", "description": "animates horizontal slide transitions between steps of a wizard or levels of a drilldown", "sideEffects": false, "scripts": { diff --git a/test/index.js b/test/index.js index 1c214fd..bda6937 100644 --- a/test/index.js +++ b/test/index.js @@ -81,7 +81,8 @@ describe('ViewSlider', () => { } expectHasFillStyle(root) - expectHasFillStyle(viewport) + expect(viewport.style.position).to.equal('relative') + expect(viewport.style.height).to.equal('100%') expectHasFillStyle(views[0].parentElement.parentElement, '0%') comp.rerender(