Example #1
0
                .spread(function (content1) {
                    content1.must.equal(expected);

                    clearConfigCache();
                    fs.unlinkSync(path.join(TEST_DATA_FOLDER, 'bundle.css'));
                    fs.symlinkSync(path.join(TEST_DATA_FOLDER, 'bundle2'), path.join(TEST_DATA_FOLDER, 'bundle.css'));

                    return bundle.runTechAndGetContent(Tech, options)
                        .spread(function (content2) {
                            content2.must.equal(expected);
                        });
                });
Example #2
0
                .spread(function (content1) {
                    content1.must.equal(expected1);

                    clearConfigCache();
                    var scheme2 = {
                        configFile: { paths: { './': '/borschik2/' } },
                        'bundle.css': '.block { background-image: url(./a2/b2.gif); }'
                    };

                    setTimeout(function () {
                        writeFiles(scheme2);

                        return bundle.runTechAndGetContent(Tech, options)
                            .spread(function (content2) {
                                content2.must.equal(expected2);
                                done();
                            });
                    }, 1000);

                });
Example #3
0
 afterEach(function () {
     clearConfigCache();
     fsExtra.removeSync(TEST_DATA_FOLDER);
 });