1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00
2015-11-12 10:26:22 +02:00

12 lines
362 B
JavaScript

'use strict';
var test = require('tape');
var rtStyle = require('../../src/rtStyle');
var text = '.text { background-color: #00346E; padding: 3px; }';
var textEp = '{\n "text": {\n "backgroundColor": "#00346E",\n "padding": 3\n }\n}';
test('html tests', function (t) {
var res = rtStyle.convertBody(text);
t.equal(res, textEp);
t.end();
});