We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15b1fa5 commit a7408fbCopy full SHA for a7408fb
test/specs/style_manager/model/Models.js
@@ -159,6 +159,18 @@ module.exports = {
159
expect(obj.parseValue('fn(testValue)')).toEqual(result);
160
expect(obj.parseValue('fn(testValue')).toEqual(result);
161
});
162
+
163
+ test('Parse correctly a value with !important', () => {
164
+ const result = { value: 'red', important: 1 };
165
+ expect(obj.parseValue('red !important ')).toEqual(result);
166
+ });
167
168
+ test('getFullValue', () => {
169
+ obj = new Property({ functionName: 'fn', value: 'red' });
170
+ expect(obj.getFullValue()).toEqual('fn(red)');
171
+ obj = new Property({ functionName: 'fn', value: '#123', important: 1 });
172
+ expect(obj.getFullValue()).toEqual('fn(#123) !important');
173
174
175
176
describe('PropertyInteger', () => {
0 commit comments