(s)
| 48 | * @returns {import("../lib/css/syntax").ComponentValue} parsed component value |
| 49 | */ |
| 50 | const cv = (s) => |
| 51 | /** @type {import("../lib/css/syntax").ComponentValue} */ ( |
| 52 | parseAComponentValue(s) |
| 53 | ); |
| 54 | expect(cv("123").type).toBe(NodeType.Number); |
| 55 | expect(cv("50%").type).toBe(NodeType.Percentage); |
| 56 | expect(cv("10px").type).toBe(NodeType.Dimension); |
no test coverage detected