indent.js
Version:
Fast minimalistic pure indentation of JavaScript, CSS, and HTML.
20 lines (19 loc) • 585 B
JavaScript
var sut = require('../../lib/indent').css;
var expect = require('chai').expect;
var ts = ' ';
describe('animation', function () {
it('simple keyframe', function () {
var expected = `
@keyframes bounce {
from, 20%, 53%, 80%, to {
-webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
}
`;
expect(sut(expected, {tabString: ts})).to.equal(
expected.replace(/\r*\n/g, '\r\n'));
});
});