-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update configuration of Prettier
- Loading branch information
Showing
15 changed files
with
178 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
--- | ||
semi: true | ||
overrides: | ||
- files: "**/*.{ts,js}" | ||
options: | ||
trailingComma: all | ||
trailingComma: "es5" | ||
tabWidth: 2 | ||
semi: true | ||
singleQuote: true | ||
quoteProps: as-needed | ||
quoteProps: "as-needed" | ||
bracketSpacing: true | ||
bracketSameLine: true | ||
arrowParens: avoid | ||
arrowParens: "avoid" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ beforeAll(async () => { | |
api = new BugzillaAPI( | ||
'http://localhost:8088/bugzilla/', | ||
'[email protected]', | ||
'adminpass', | ||
'adminpass' | ||
); | ||
|
||
bugs.push(await api.createBug(bug)); | ||
|
@@ -64,7 +64,7 @@ beforeAll(async () => { | |
file_name: 'image.png', | ||
data: Buffer.from('This is not a image.'), | ||
content_type: 'image/png', | ||
})), | ||
})) | ||
); | ||
|
||
expect(attachments).toBeDefined(); | ||
|
@@ -199,7 +199,7 @@ test(`Edit single attachment`, async () => { | |
is_patch: true, | ||
// is_private: true, | ||
summary: 'new summary', | ||
}), | ||
}) | ||
).resolves.toEqual([ | ||
{ | ||
changes: new Map([ | ||
|
@@ -233,7 +233,7 @@ test('Edit multiple attachments', async () => { | |
is_patch: true, | ||
// is_private: true, | ||
summary: 'new summary', | ||
}), | ||
}) | ||
).resolves.toEqual([ | ||
{ | ||
changes: expect.anything(), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ test('Authenticated access', async () => { | |
let api = new BugzillaAPI( | ||
'http://localhost:8088/bugzilla/', | ||
'[email protected]', | ||
'adminpass', | ||
'adminpass' | ||
); | ||
|
||
await expect(api.version()).resolves.toBe('5.1.2'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ beforeEach(async () => { | |
api = new BugzillaAPI( | ||
'http://localhost:8088/bugzilla/', | ||
'[email protected]', | ||
'adminpass', | ||
'adminpass' | ||
); | ||
|
||
bugs.push(await api.createBug(bug)); | ||
|
@@ -40,7 +40,7 @@ beforeEach(async () => { | |
platform: 'Macintosh', | ||
priority: 'High', | ||
severity: 'normal', | ||
}), | ||
}) | ||
); | ||
|
||
expect(bugs).toBeDefined(); | ||
|
@@ -149,7 +149,7 @@ test('Fetch bugs', async () => { | |
]); | ||
|
||
await expect(api.quicksearch('ALL')).resolves.toEqual( | ||
expect.arrayContaining(result), | ||
expect.arrayContaining(result) | ||
); | ||
}); | ||
|
||
|
@@ -161,7 +161,7 @@ test('Update bug', async () => { | |
blocks: { set: [bugs[1] as number] }, | ||
comment: { comment: 'New comment', is_private: false }, | ||
severity: 'normal', | ||
}), | ||
}) | ||
).resolves.toEqual([ | ||
{ | ||
alias: [], | ||
|
@@ -181,7 +181,7 @@ test('Update multiple bugs', async () => { | |
id_or_alias: bugs[0] as number, | ||
ids: [bugs[0] as number, bugs[1] as number], | ||
severity: 'normal', | ||
}), | ||
}) | ||
).resolves.toEqual([ | ||
{ | ||
alias: [], | ||
|
@@ -208,27 +208,27 @@ test('Get history of bug', async () => { | |
|
||
test('Use of advance searching', async () => { | ||
const expected = await api.advancedSearch( | ||
'http://localhost:8088/bugzilla/buglist.cgi?email1=admin%40nowhere.com&severity=normal', | ||
'http://localhost:8088/bugzilla/buglist.cgi?email1=admin%40nowhere.com&severity=normal' | ||
); | ||
|
||
expected.forEach(bug => { | ||
expect(bug).toEqual( | ||
expect.objectContaining({ | ||
severity: 'normal', | ||
creator: '[email protected]', | ||
}), | ||
}) | ||
); | ||
}); | ||
|
||
await expect( | ||
api.advancedSearch('email1=admin%40nowhere.com&severity=normal'), | ||
api.advancedSearch('email1=admin%40nowhere.com&severity=normal') | ||
).resolves.toEqual(expected); | ||
|
||
await expect( | ||
api.advancedSearch({ | ||
email1: '[email protected]', | ||
severity: 'normal', | ||
}), | ||
}) | ||
).resolves.toEqual(expected); | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ beforeEach(async () => { | |
api = new BugzillaAPI( | ||
'http://localhost:8088/bugzilla/', | ||
'[email protected]', | ||
'adminpass', | ||
'adminpass' | ||
); | ||
|
||
bugs.push(await api.createBug(bug)); | ||
|
@@ -38,7 +38,7 @@ test('Create comment', async () => { | |
await expect( | ||
api.createComment(bugs[0] as number, 'First comment!', { | ||
is_private: false, | ||
}), | ||
}) | ||
).resolves.not.toThrow(); | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.