1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00
This commit is contained in:
ido 2015-11-12 10:26:22 +02:00
parent 0720e7f56a
commit 2d98822e5d

View File

@ -1,20 +1,8 @@
'use strict';
var test = require('tape');
var rtStyle = require('../../src/rtStyle');
//var fs = require('fs');
//var _ = require('lodash');
//var path = require('path');
//var React = require('react/addons');
//var util = require('./util');
//var dataPath = path.resolve(__dirname, '..', 'data');
var text = '.text { background-color: #00346E; padding: 3px; }';
//var textEp = "{text: {backgroundColor: '#00346E', padding: 3px}}";
//var textEp = '{"text":{"backgroundColor":"#00346E","padding":3}}';
var textEp = '{\n "text": {\n "backgroundColor": "#00346E",\n "padding": 3\n }\n}';
//var textEpModule = '\'use strict\';\nvar style = {"text":{"backgroundColor":"#00346E","padding":3}};\nmodule.exports = style;\n';
//var row = '.text { background-color: #00346E; padding: 3px; }';
test('html tests', function (t) {
var res = rtStyle.convertBody(text);