Commit e2a740fc authored by Carson Howard's avatar Carson Howard

Fixed test errors

parent 9af9e4cc
...@@ -929,9 +929,14 @@ describe("Filter", function() { ...@@ -929,9 +929,14 @@ describe("Filter", function() {
}); });
describe("Manually Apply", function() { describe("Manually Apply", function() {
before(function() { beforeEach(function() {
var test = this; var test = this;
return fse.readFile(readmePath, "utf8") var opts = {
checkoutStrategy: Checkout.STRATEGY.FORCE,
paths: "README.md"
};
return Checkout.head(test.repository, opts)
.then(() => fse.readFile(readmePath, "utf8"))
.then((function(content) { .then((function(content) {
test.originalReadmeContent = content; test.originalReadmeContent = content;
})); }));
...@@ -942,7 +947,7 @@ describe("Filter", function() { ...@@ -942,7 +947,7 @@ describe("Filter", function() {
return fse.writeFile(readmePath, this.originalReadmeContent); return fse.writeFile(readmePath, this.originalReadmeContent);
}); });
var message = "some new fancy filter"; var message = "This is the filtered content, friends";
var length = message.length; var length = message.length;
var tempBuffer = new Buffer(message, "utf-8"); var tempBuffer = new Buffer(message, "utf-8");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment