mirror of
https://github.com/papercss/papercss
synced 2024-05-23 08:02:19 +02:00
changes
This commit is contained in:
parent
4bcd2107d1
commit
1fa37fe9cf
|
@ -7,10 +7,11 @@
|
|||
var UNIX_BUILD_COMMAND = "./jake.sh";
|
||||
var WINDOWS_BUILD_COMMAND = "jake.bat";
|
||||
|
||||
var os = require("os");
|
||||
//var os = require("os");
|
||||
|
||||
exports.get = function() {
|
||||
return os.platform() === "win32" ? WINDOWS_BUILD_COMMAND : UNIX_BUILD_COMMAND;
|
||||
//return os.platform() === "win32" ? WINDOWS_BUILD_COMMAND : UNIX_BUILD_COMMAND;
|
||||
return WINDOWS_BUILD_COMMAND;
|
||||
};
|
||||
|
||||
}());
|
|
@ -13,14 +13,17 @@
|
|||
basePath: '../../..',
|
||||
|
||||
// frameworks to use
|
||||
frameworks: ['mocha'],
|
||||
frameworks: ['mocha', 'commonjs'],
|
||||
|
||||
middleware: ['node-modules'],
|
||||
|
||||
// list of files / patterns to load in the browser
|
||||
files: [
|
||||
'tests/**/*.js',
|
||||
'node_modules/**/*.js',
|
||||
'tests/*.js',
|
||||
'tests/vendor/*.js',
|
||||
"node_modules/chai/chai.js",
|
||||
//'tests/**/*.js',
|
||||
//'node_modules/**/*.js',
|
||||
//'node_modules/**/*.js',
|
||||
// QUIXOTE: Serve the CSS file so we can load it in our tests
|
||||
// Mark it `included: false` so Karma doesn't load it automatically
|
||||
|
@ -32,9 +35,10 @@
|
|||
|
||||
// preprocess matching files before serving them to the browser
|
||||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
||||
//preprocessors: {
|
||||
// 'tests/**/*.js': ['commonjs'],
|
||||
//},
|
||||
preprocessors: {
|
||||
'tests/*.js': ['commonjs'],
|
||||
'tests/vendor/*.js': ['commonjs'],
|
||||
},
|
||||
|
||||
// test results reporter to use
|
||||
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
(function() {
|
||||
"use strict";
|
||||
|
||||
var quixote = require("../node_modules/quixote/dist/quixote.js");
|
||||
var assert = require("../node_modules/chai/chai.js").assert;
|
||||
var quixote = require("./vendor/quixote.js");
|
||||
var assert = require("./vendor/chai.js").assert;
|
||||
|
||||
describe("Colors", function() {
|
||||
var frame;
|
||||
|
@ -72,4 +72,4 @@
|
|||
assert.equal(textMuted.getRawStyle("color"), "rgb(134, 142, 150)", "Muted color should be #868e96");
|
||||
});
|
||||
});
|
||||
}());
|
||||
}());
|
||||
|
|
10707
tests/vendor/chai.js
vendored
Normal file
10707
tests/vendor/chai.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
4195
tests/vendor/quixote.js
vendored
Normal file
4195
tests/vendor/quixote.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue