Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Jan 16, 2017
1 parent 7670176 commit c55813f
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 151 deletions.
4 changes: 2 additions & 2 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ var parse = require('../lib/parser');
var walk = require('../lib/utils/walk').all;
var stringify = require('./helpers/stringify.js');
var types = ['An+B', 'Atrule', 'AtruleExpression', 'Attribute', 'Block', 'Brackets', 'Class', 'Combinator', 'Comment', 'Declaration', 'Dimension', 'Function', 'Hash', 'Id', 'Identifier', 'Nth', 'Number', 'Operator', 'Parentheses', 'Percentage', 'Progid', 'PseudoClass', 'PseudoElement', 'Raw', 'Rule', 'Selector', 'SimpleSelector', 'Space', 'String', 'StyleSheet', 'Type', 'UnicodeRange', 'Universal', 'Url', 'Value'];
var css = './test/fixture/stringify.css';
var css = '/fixture/stringify.css';

function normalize(str) {
return str.replace(/\n|\r\n?|\f/g, '\n');
}

describe('Common', function() {
var cssStr = fs.readFileSync(css, 'utf-8');
var cssStr = normalize(fs.readFileSync(__dirname + css, 'utf-8'));
var ast = parse(cssStr, {
filename: path.basename(css),
positions: true
Expand Down
Loading

0 comments on commit c55813f

Please sign in to comment.