Skip to content

Commit

Permalink
Develop (#47)
Browse files Browse the repository at this point in the history
* Some clean up, added Spotify icon for offline/loading state

* Minor clean up in Mobile view

* Updating about text.

* Fixing max width for the Tab Panel

* P-18: fixed bug when type is not track

* P-20: Add real time spotify streaming progress bar. (#21)

* P-23: Added experience section. (#24)

* P-26: Added placeholder projects section. (#27)

* Wip footer.

* develop: some footer updates, brb.

* develop: simple footer.

* P-11 (#31)

* P-11: added vitest, react testing library config for unit testing.

* P-11: add Projects unit test.

* P-11: fix bg card color.

* P-11 (#32)

* P-11: added vitest, react testing library config for unit testing.

* P-11: add Projects unit test.

* P-11: fix bg card color.

* P-11: almost done, missing Github actions and TODOS in test.

* Update src/components/Navigation/Navigation.test.tsx

* theme-mode: add dark/light mode. (#38)

* animation: add simple typing animation and set initial theme mode based on user system pref. (#41)

* cloudinary: replace png images, missing svgs (#44)

* Cloudinary (#46)

* cloudinary: replace png images, missing svgs

* cloudinary: fixing import.
  • Loading branch information
mariatorrentedev authored Jul 4, 2024
1 parent 971e448 commit 50c0cdd
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/test/msw/handlers.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
import { http, HttpResponse } from "msw";
import {
TOKEN_ENDPOINT,
NOW_PLAYING_ENDPOINT,
CLIENT_ID,
CLIENT_SECRET,
} from "../../config";
import { config } from "../../config";

const basic = Buffer.from(`${CLIENT_ID}:${CLIENT_SECRET}`).toString("base64");
const basic = Buffer.from(
`${config.CLIENT_ID}:${config.CLIENT_SECRET}`
).toString("base64");

export const handlers = [
http.post(TOKEN_ENDPOINT, () => {
http.post(config.TOKEN_ENDPOINT, () => {
return new HttpResponse(null, {
headers: {
Authorization: `Basic ${basic}`,
"Content-Type": "application/x-www-form-urlencoded",
},
});
}),
http.get(NOW_PLAYING_ENDPOINT, () => {
http.get(config.NOW_PLAYING_ENDPOINT, () => {
return new HttpResponse(null, {
headers: {
Authorization: `Bearer foo`,
Expand Down

0 comments on commit 50c0cdd

Please sign in to comment.