forked from facebook/react
/
CSSProperty-test.js
37 lines (32 loc) · 1.38 KB
/
CSSProperty-test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Copyright 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-core
*/
'use strict';
describe('CSSProperty', () => {
var CSSProperty;
beforeEach(() => {
jest.resetModuleRegistry();
CSSProperty = require('CSSProperty');
});
it('should generate browser prefixes for its `isUnitlessNumber`', () => {
expect(CSSProperty.isUnitlessNumber.lineClamp).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.WebkitLineClamp).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msFlexGrow).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.MozFlexGrow).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridRow).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridRowEnd).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridRowSpan).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridRowStart).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridColumn).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridColumnEnd).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridColumnSpan).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridColumnStart).toBeTruthy();
});
});