fix tests

This commit is contained in:
Blake Blackshear
2022-05-20 09:27:21 -05:00
parent d8d410802f
commit 3e7ed982d4
4 changed files with 6 additions and 6 deletions

View File

@@ -1,2 +1,2 @@
export const ENV = 'test';
export const API_HOST = 'http://base-url.local:5000';
export const API_HOST = 'http://base-url.local:5000/';

View File

@@ -18,6 +18,6 @@ describe('useApiHost', () => {
<Test />
</ApiProvider>
);
expect(screen.queryByText('http://base-url.local:5000')).toBeInTheDocument();
expect(screen.queryByText('http://base-url.local:5000/')).toBeInTheDocument();
});
});

View File

@@ -1,2 +1,2 @@
export const ENV = import.meta.env.MODE;
export const API_HOST = ENV === "production" ? "" : "http://localhost:5000";
export const API_HOST = ENV === 'production' ? '' : 'http://localhost:5000/';