correct the test

This commit is contained in:
Andrew Nester 2024-11-27 15:11:16 +01:00
parent 735d72225a
commit 33ce0292fb
No known key found for this signature in database
GPG Key ID: 12BC628A44B7DA57
1 changed files with 4 additions and 1 deletions

View File

@ -25,6 +25,9 @@ func TestTranslatePathsApps_FilePathRelativeSubDirectory(t *testing.T) {
SyncRootPath: dir,
SyncRoot: vfs.MustNew(dir),
Config: config.Root{
Workspace: config.Workspace{
FilePath: "/bundle/files",
},
Resources: config.Resources{
Apps: map[string]*resources.App{
"app": {
@ -48,7 +51,7 @@ func TestTranslatePathsApps_FilePathRelativeSubDirectory(t *testing.T) {
// Assert that the file path for the app has been converted to its local absolute path.
assert.Equal(
t,
filepath.Join("src", "app"),
"/bundle/files/src/app",
b.Config.Resources.Apps["app"].SourceCodePath,
)
}