Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cssflip_test.js « test - github.com/twbs/grunt-css-flip.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 15e84273fbb346d134827a905c8794786d46683b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
'use strict';

var grunt = require('grunt');

exports.cssflip = {
  defaultOptions: function (test) {
    test.expect(1);

    var actual = grunt.file.read('tmp/default_options.css');
    var expected = grunt.file.read('test/expected/default_options.css');
    test.equal(actual, expected, 'should flip the CSS.');

    test.done();
  },
  customOptions: function (test) {
    test.expect(1);

    var actual = grunt.file.read('tmp/custom_options.css');
    var expected = grunt.file.read('test/expected/custom_options.css');
    test.equal(actual, expected, 'should flip the CSS while honoring the custom indentation specified in the options.');

    test.done();
  }
};