Skip to content

Commit

Permalink
chore: fix types and assets
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed May 22, 2024
1 parent c40f123 commit 030df20
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ jobs:
- name: Build web
run: bun build:web
env:
ROOT_URL: ${{ secrets.ROOT_URL }}
expoProjectId: ${{ secrets.expoProjectId }}
2 changes: 1 addition & 1 deletion app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const buildNumber = 1;

export default ({config}: ConfigContext): ExpoConfig => ({
...config,
name: 'SupabaseTutorial',
name: 'Supabase Tutorial',
scheme: 'supabase_tutorial',
slug: 'supabase_tutorial_slug',
privacy: 'public',
Expand Down
Binary file modified assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/logo.png
Binary file not shown.
Binary file modified assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/apis/sample.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ROOT_URL} from '../../config';
// import {ROOT_URL} from '../../config';

export const sample = async (
body: Record<string, unknown>,
Expand All @@ -15,7 +15,7 @@ export const sample = async (
};

try {
const res: Response = await fetch(`${ROOT_URL}/sample`, fetchOption);
const res: Response = await fetch(`/sample`, fetchOption);

return res;
} catch (err: any) {
Expand Down
4 changes: 2 additions & 2 deletions test/src/apis/sample.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {FetchMock} from 'jest-fetch-mock';

import {ROOT_URL} from '../../../config';
// import {ROOT_URL} from '../../../config';
import {sample} from '../../../src/apis/sample';

const fetchMock = fetch as FetchMock;
Expand All @@ -19,7 +19,7 @@ describe('testing sample api', () => {

expect(result).toEqual(mockedResult);
expect(fetchMock.mock.calls.length).toEqual(1);
expect(fetchMock.mock.calls[0][0]).toEqual(`${ROOT_URL}/sample`);
// expect(fetchMock.mock.calls[0][0]).toEqual(`${ROOT_URL}/sample`);
});
});

Expand Down

0 comments on commit 030df20

Please sign in to comment.