Skip to content

Commit

Permalink
moved tests out of __tests__
Browse files Browse the repository at this point in the history
  • Loading branch information
Kate Brune committed Oct 17, 2020
1 parent 9bd7f4c commit 9208763
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion __tests__/Helpers.spec.ts → common/Helpers.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getTrackIdList, combineTwoArraysOnId } from "../common/Helpers"
import { getTrackIdList, combineTwoArraysOnId } from "./Helpers"

describe("Helpers", () => {
describe("getTrackIdList", () => {
Expand All @@ -9,20 +9,23 @@ describe("Helpers", () => {
imageLink: "",
name: "",
previewUrl: "",
uri: "",
},
{
artist: "mock2",
id: "2",
imageLink: "",
name: "Figure 8",
previewUrl: "",
uri: "",
},
{
artist: "mock3",
id: "3",
imageLink: "",
name: "Figure 8",
previewUrl: "",
uri: "",
},
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
sadComparator,
sleepyComparator,
drivingComparator,
} from "../common/MoodComparators"
import { mockPropertyTracks } from "../common/mocks/PropertyTracks"
} from "./MoodComparators"
import { mockPropertyTracks } from "./mocks/PropertyTracks"

describe("MoodComparators", () => {
const happierTrack = mockPropertyTracks.find((o) => o.name === "I Want You To Love Me")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { processQueue } from "../common/QueueProcessor"
import { happyComparator } from "../common/MoodComparators"
import { mockPropertyTracks } from "../common/mocks/PropertyTracks"
import { processQueue } from "./QueueProcessor"
import { happyComparator } from "./MoodComparators"
import { mockPropertyTracks } from "./mocks/PropertyTracks"

describe("QueueProcessors", () => {
describe("processQueue", () => {
Expand Down

0 comments on commit 9208763

Please sign in to comment.