Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

Commit

Permalink
Fixed dependency installer tests failing because of line ending incon…
Browse files Browse the repository at this point in the history
…sistencies were changing the test file's sha1 signature and its byte size
  • Loading branch information
guillaumejenkins committed Jul 8, 2015
1 parent 8bc9e84 commit 8b3c003
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,7 @@

# Make sure to keep "executable" files with lf line endings
src/taco-cli/bin/taco text eol=lf
src/remotebuild/bin/remotebuild text eol=lf
src/remotebuild/bin/remotebuild text eol=lf

# Keep line endings consistent across platforms for the dummy file used in unit tests to calculate SHA1 signature and byte size
/src/taco-dependency-installer/test/test-data/testFile.txt text eol=lf
4 changes: 2 additions & 2 deletions src/taco-dependency-installer/test/installerUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import installerUtils = require ("../utils/installerUtils");
describe("InstallerUtils", function (): void {
// Important paths
var testFile: string = path.join(__dirname, "test-data", "testFile.txt");
var testFileSha1: string = "23cb44e140a3dadcc5e51e75dd3ffe84c242e3bc";
var testFileBytes: number = 3212;
var testFileSha1: string = "8B88752A4C77711EFC9A742A2A4086E8480042A0";
var testFileBytes: number = 3148;

describe("isFileClean()", function (): void {
it("should return true when the specified file is clean", function (): void {
Expand Down

0 comments on commit 8b3c003

Please sign in to comment.