Skip to content

Commit e2a740f

Browse files
author
Carson Howard
committed
Fixed test errors
1 parent 9af9e4c commit e2a740f

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

test/tests/filter.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -929,9 +929,14 @@ describe("Filter", function() {
929929
});
930930

931931
describe("Manually Apply", function() {
932-
before(function() {
932+
beforeEach(function() {
933933
var test = this;
934-
return fse.readFile(readmePath, "utf8")
934+
var opts = {
935+
checkoutStrategy: Checkout.STRATEGY.FORCE,
936+
paths: "README.md"
937+
};
938+
return Checkout.head(test.repository, opts)
939+
.then(() => fse.readFile(readmePath, "utf8"))
935940
.then((function(content) {
936941
test.originalReadmeContent = content;
937942
}));
@@ -942,7 +947,7 @@ describe("Filter", function() {
942947
return fse.writeFile(readmePath, this.originalReadmeContent);
943948
});
944949

945-
var message = "some new fancy filter";
950+
var message = "This is the filtered content, friends";
946951
var length = message.length;
947952
var tempBuffer = new Buffer(message, "utf-8");
948953

0 commit comments

Comments
 (0)