Skip to content

Commit 9363ceb

Browse files
Merge branch 'pre' into release/v0.0.6
2 parents e528432 + 7f4b5e0 commit 9363ceb

File tree

17 files changed

+244
-403
lines changed

17 files changed

+244
-403
lines changed

__tests__/fixtures/projects.columns.cards.error.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

__tests__/fixtures/projects.columns.cards.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

__tests__/fixtures/projects.columns.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

__tests__/fixtures/projects.get.json

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "test",
3+
"version": "0.0.1"
4+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "test",
3+
"version": "0.0.1",
4+
"scripts": {
5+
"test1": "test1",
6+
"test2": "test2"
7+
}
8+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "test",
3+
"version": "0.0.1",
4+
"scripts": {
5+
"build": "test1",
6+
"production": "test2",
7+
"prod": "test3"
8+
}
9+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "test",
3+
"version": "0.0.1",
4+
"scripts": {
5+
"production": "test2",
6+
"prod": "test3"
7+
}
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "test",
3+
"version": "0.0.1",
4+
"scripts": {
5+
"prod": "test3"
6+
}
7+
}

__tests__/util.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1 @@
1-
const fs = require('fs');
2-
const path = require('path');
3-
4-
export const getConfigFixture = (fileName: string = 'config.yml') => ({
5-
type: 'file',
6-
encoding: 'base64',
7-
size: 5362,
8-
name: fileName,
9-
path: `.github/${fileName}`,
10-
content: encodeContent(fs.readFileSync(path.resolve(__dirname, `./fixtures/${fileName}`))),
11-
sha: '3d21ec53a331a6f037a91c368710b99387d012c1',
12-
url:
13-
'https://api.github.com/repos/Codertocat/Hello-World/contents/.github/release-drafter.yml',
14-
git_url:
15-
'https://api.github.com/repos/Codertocat/Hello-World/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1',
16-
html_url:
17-
'https://github.com/Codertocat/Hello-World/blob/master/.github/release-drafter.yml',
18-
download_url:
19-
'https://raw.githubusercontent.com/Codertocat/Hello-World/master/.github/release-drafter.yml',
20-
_links: {
21-
git:
22-
'https://api.github.com/repos/Codertocat/Hello-World/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1',
23-
self:
24-
'https://api.github.com/repos/Codertocat/Hello-World/contents/.github/release-drafter.yml',
25-
html:
26-
'https://github.com/Codertocat/Hello-World/blob/master/.github/release-drafter.yml',
27-
},
28-
});
29-
30-
export const getApiFixture = (name: string) => JSON.parse(fs.readFileSync(path.resolve(__dirname, `./fixtures/${name}.json`)));
31-
321
export const encodeContent = (content: string) => Buffer.from(content).toString('base64');

0 commit comments

Comments
 (0)