Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ecc1ca commit ff0c00bCopy full SHA for ff0c00b
spec/utils-spec.js
@@ -90,6 +90,8 @@ describe('gridstack utils', function() {
90
expect(utils.parseHeight('12.3vh')).toEqual(jasmine.objectContaining({height: 12.3, unit: 'vh'}));
91
expect(utils.parseHeight('12.3vw')).toEqual(jasmine.objectContaining({height: 12.3, unit: 'vw'}));
92
expect(utils.parseHeight('12.5')).toEqual(jasmine.objectContaining({height: 12.5, unit: 'px'}));
93
+ expect(function() { utils.parseHeight('12.5 df'); }).toThrowError('Invalid height');
94
+
95
});
96
97
it('should parse negative height value', function() {
0 commit comments