aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/music.spec.ts21
1 files changed, 20 insertions, 1 deletions
diff --git a/test/music.spec.ts b/test/music.spec.ts
index 3fa51b8e..561ddf02 100644
--- a/test/music.spec.ts
+++ b/test/music.spec.ts
@@ -8,6 +8,9 @@ const seededRuns = [
genre: {
noArgs: 'Country',
},
+ songName: {
+ noArgs: 'Only The Lonely (Know The Way I Feel)',
+ },
},
},
{
@@ -16,6 +19,9 @@ const seededRuns = [
genre: {
noArgs: 'Folk',
},
+ songName: {
+ noArgs: 'Turn! Turn! Turn! (To Everything There is a Season)',
+ },
},
},
{
@@ -24,11 +30,14 @@ const seededRuns = [
genre: {
noArgs: 'Non Music',
},
+ songName: {
+ noArgs: 'The End of the World',
+ },
},
},
];
-const functionNames = ['genre'];
+const functionNames = ['genre', 'songName'];
const NON_SEEDED_BASED_RUN = 5;
@@ -64,6 +73,16 @@ describe('music', () => {
expect(faker.definitions.music.genre).toContain(genre);
});
});
+
+ describe('songName()', () => {
+ it('returns a random song name', () => {
+ const songName = faker.music.songName();
+
+ expect(songName).toBeTruthy();
+ expect(songName).toBeTypeOf('string');
+ expect(faker.definitions.music.song_name).toContain(songName);
+ });
+ });
}
});
});