Skip to content

Commit 2ad2a02

Browse files
committed
test: drop addDependencyTo because is deprecated, issue #27
1 parent 7f657d9 commit 2ad2a02

3 files changed

Lines changed: 7 additions & 36 deletions

File tree

package-lock.json

Lines changed: 6 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"jscs": "^3.0.7",
1313
"jshint": "^2.8.0",
1414
"mocha": "^6.2.1",
15-
"posthtml": "^0.11.3"
15+
"posthtml": "^0.12.0"
1616
},
1717
"scripts": {
1818
"test": "npm run lint && mocha -R dot && npm run cover",

test/test.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,6 @@ describe('Simple test', function() {
4343
);
4444
});
4545

46-
it('addDependencyTo option', function(done) {
47-
var includePath = require('path').resolve('./test/blocks/button/button.html');
48-
49-
function test(filePath) {
50-
try {
51-
expect(filePath).to.eql(includePath);
52-
done();
53-
} catch(err) {
54-
done(err);
55-
}
56-
}
57-
58-
posthtml()
59-
.use(plugin({ addDependencyTo: { addDependency: test }}))
60-
.process('<include src="./test/blocks/button/button.html">');
61-
});
62-
6346
it('messages dependency for addDependency', function(done) {
6447
var includePath = require('path').resolve('./test/blocks/button/button.html');
6548

0 commit comments

Comments
 (0)