aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fixtures
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fixtures')
-rw-r--r--tests/fixtures/github-repos.fixture.ts30
-rw-r--r--tests/fixtures/index.ts1
2 files changed, 31 insertions, 0 deletions
diff --git a/tests/fixtures/github-repos.fixture.ts b/tests/fixtures/github-repos.fixture.ts
new file mode 100644
index 0000000..5eaa1ce
--- /dev/null
+++ b/tests/fixtures/github-repos.fixture.ts
@@ -0,0 +1,30 @@
+import type { GithubRepositoryMeta } from '../../src/types';
+
+type GithubRepository = GithubRepositoryMeta & {
+ name: string;
+ owner: string;
+};
+
+export const githubRepos = [
+ {
+ createdAt: '2020-09-26',
+ name: 'laborum',
+ owner: 'Dion',
+ stargazerCount: 8,
+ updatedAt: '2023-05-05',
+ },
+ {
+ createdAt: '2020-10-30',
+ name: 'quo',
+ owner: 'Brennan',
+ stargazerCount: 0,
+ updatedAt: '2022-03-01',
+ },
+ {
+ createdAt: '2021-11-16',
+ name: 'soluta',
+ owner: 'Alex',
+ stargazerCount: 8,
+ updatedAt: '2023-08-10',
+ },
+] satisfies GithubRepository[];
diff --git a/tests/fixtures/index.ts b/tests/fixtures/index.ts
index 2ae0185..249b608 100644
--- a/tests/fixtures/index.ts
+++ b/tests/fixtures/index.ts
@@ -1,3 +1,4 @@
+export * from './github-repos.fixture';
export * from './wp-comments.fixture';
export * from './wp-posts.fixture';
export * from './wp-thematics.fixture';