Skip to content

Commit

Permalink
fix windows tests for artifacts storage resolver (#5186)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiladShoham committed Dec 27, 2021
1 parent db488e1 commit ffc4843
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Component } from "@teambit/component";
import { Artifact, ArtifactVinyl, FileStorageResolver } from "@teambit/builder";
import { pathNormalizeToLinux } from '@teambit/legacy/dist/utils';

export class FakeStorageResolver implements FileStorageResolver {
name: 'fake-storage-resolver';
Expand All @@ -10,7 +11,7 @@ export class FakeStorageResolver implements FileStorageResolver {
file: ArtifactVinyl
): Promise<string> {

const relativeFilePath = file.relative;
const relativeFilePath = pathNormalizeToLinux(file.relative);
const url = `http://fake-url/${relativeFilePath}`;

return url;
Expand Down

0 comments on commit ffc4843

Please sign in to comment.