This file contains hidden or 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
| describe('Page: list of Star Wars characters', () => { | |
| const characters = [ | |
| { | |
| name: 'Chewbacca', | |
| species: 'Wookie', | |
| }, | |
| { | |
| name: 'Luke Skywalker', | |
| species: 'Human', | |
| } |
This file contains hidden or 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
| const responseStub = result => | |
| Promise.resolve({ | |
| json() { | |
| return Promise.resolve(result); | |
| }, | |
| text() { | |
| return Promise.resolve(JSON.stringify(result)); | |
| }, | |
| ok: result.ok === undefined ? true : result.ok, | |
| }); |
This file contains hidden or 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
| export function filterHeaders(headers, nameList) { | |
| return nameList | |
| .map(name => name.toLowerCase()) | |
| .reduce((acc, name) => ({ | |
| ...acc, | |
| [name]: headers[name] | |
| }, {}) | |
| .filter(Boolean); | |
| } |
This file contains hidden or 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
| export const myResolver = { | |
| Query: { | |
| getTodo: (_, { id }, { dataSources }) { | |
| return dataSources.todoAPI.getTodo(id) | |
| } | |
| } | |
| } |
This file contains hidden or 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
| ts-message:hover:not(.standalone):not(.multi_delete_mode):not(.highlight) { | |
| background: #353535; | |
| } | |
| ts-message { | |
| font-size: .8375rem !important; | |
| } | |
| #col_channels, | |
| #team_menu, |