Skip to content

Commit 1ec6118

Browse files
committed
Cleanup tests
1 parent 02bbb48 commit 1ec6118

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

build/build_test.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,14 @@ describe("documentjs/lib/generators/html/build",function(){
127127
return build.staticDist({
128128
forceBuild: true,
129129
html: {
130-
dependencies: {
131-
"can-component": "3.0.0-pre.9"
132-
},
133130
staticDist: [
134131
path.join(__dirname, '..', 'test-static-dist')
135132
]
136133
},
137134
}).then(function(result){
138135
return read(path.join(__dirname, "..", result.distFolder, "test.css"));
139136
}).then(function(res){
140-
assert.ok(/#TestID/.test(res), "got static.js with component");
137+
assert.ok(/#TestID/.test(res), "got test.css file");
141138
});
142139
});
143140

@@ -146,17 +143,14 @@ describe("documentjs/lib/generators/html/build",function(){
146143
return build.staticDist({
147144
forceBuild: true,
148145
html: {
149-
dependencies: {
150-
"can-component": "3.0.0-pre.9"
151-
},
152146
staticDist: [
153147
'./test-static-dist'
154148
]
155149
},
156150
}).then(function(result){
157151
return read(path.join(__dirname, "..", result.distFolder, "test.css"));
158152
}).then(function(res){
159-
assert.ok(/#TestID/.test(res), "got static.js with component");
153+
assert.ok(/#TestID/.test(res), "got test.css file");
160154
});
161155
});
162156

0 commit comments

Comments
 (0)