Skip to content
Browse files

don't test build in spm. test them in grunt-spm-build

  • Loading branch information...
1 parent 86e1aea commit 85b1cb1dce342e31c440e7a6dbb533a7e18d257b Hsiaoming Yang committed
View
22 tests/8.standard-cases-build.test.js
@@ -1,22 +0,0 @@
-var fs = require('fs');
-var path = require('path');
-var should = require('should');
-var require = require('./_require');
-var spm = require('..');
-
-var casedir = path.join(__dirname, 'standard-cases');
-var cases = fs.readdirSync(casedir).filter(function(dir) {
- return fs.statSync(path.join(casedir, dir)).isDirectory();
-});
-
-var cwd = process.cwd();
-
-describe('building cases', function() {
- cases.forEach(function(name) {
- var absdir = path.join(casedir, name);
- it(name, function() {
- process.chdir(absdir);
- spm.build({quiet: true});
- });
- });
-});
View
8 tests/standard-cases/custom-format/package.json
@@ -1,8 +0,0 @@
-{
- "name": "format",
- "version": "0.1.0",
- "spm": {
- "format": "{{ name }}",
- "output": ["format.js"]
- }
-}
View
1 tests/standard-cases/custom-format/src/format.js
@@ -1 +0,0 @@
-define(function(require) {})
View
8 tests/standard-cases/output-files/package.json
@@ -1,8 +0,0 @@
-{
- "family": "test",
- "name": "file",
- "version": "0.1.0",
- "spm": {
- "output": ["a.txt", "b/**/*"]
- }
-}
View
1 tests/standard-cases/output-files/src/a.txt
@@ -1 +0,0 @@
-define({});
View
0 tests/standard-cases/output-files/src/b/a.hello
No changes.
View
0 tests/standard-cases/output-files/src/b/c/a.world
No changes.
View
8 tests/standard-cases/relative-deps/package.json
@@ -1,8 +0,0 @@
-{
- "family": "test",
- "name": "relative",
- "version": "0.1.0",
- "spm": {
- "output": ["relative.js"]
- }
-}
View
1 tests/standard-cases/relative-deps/src/a.js
@@ -1 +0,0 @@
-define({})
View
3 tests/standard-cases/relative-deps/src/relative.js
@@ -1,3 +0,0 @@
-define(function(require) {
- require('./a')
-});

0 comments on commit 85b1cb1

Please sign in to comment.
Something went wrong with that request. Please try again.