Skip to content

Commit b5efaf4

Browse files
committed
Fix tests
1 parent 2f26d49 commit b5efaf4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"uuid":"test","fileSize":1234,"contentType":"text","contentSubType":"plain","serverDirectory":"/Users/grantcopley/Code/ortus/cbwire/cbwire/test-harness/tests/resources","serverFile":"logo.png"}

test-harness/tests/specs/FileUploadSpec.cfc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ component extends="coldbox.system.testing.BaseTestCase" {
8181

8282
it( "should return the temporary storage path", function() {
8383
var result = loadMockedFileUpload( "test", "text", "plain" );
84-
expect( result.getTemporaryStoragePath() ).toBe( expandPath( "../resources/logo.png" ) );
84+
expect( result.getTemporaryStoragePath() ).toBe( expandPath( "./resources/logo.png" ) );
8585
});
8686

8787
it( "should return binary file contents when calling get", function() {
@@ -120,7 +120,7 @@ component extends="coldbox.system.testing.BaseTestCase" {
120120
path = metaPath,
121121
data = {
122122
"uuid" : arguments.uuid,
123-
"serverDirectory" : expandPath( "../resources" ),
123+
"serverDirectory" : expandPath( "./resources" ),
124124
"serverFile" : "logo.png",
125125
"contentType" : arguments.contentType,
126126
"contentSubType" : arguments.contentSubType,

0 commit comments

Comments
 (0)