MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / enableKeyboardShortcuts

Function enableKeyboardShortcuts

e2e/shortcuts-modal.spec.ts:10–23  ·  view source on GitHub ↗
(request: APIRequestContext)

Source from the content-addressed store, hash-verified

8 '/learn/javascript-algorithms-and-data-structures/basic-javascript/comment-your-javascript-code';
9
10const enableKeyboardShortcuts = async (request: APIRequestContext) => {
11 const res = await authedRequest({
12 request,
13 endpoint: '/update-my-keyboard-shortcuts',
14 method: 'put',
15 data: {
16 keyboardShortcuts: true
17 }
18 });
19 expect(await res.json()).toEqual({
20 message: 'flash.keyboard-shortcut-updated',
21 type: 'success'
22 });
23};
24
25const openModal = async (page: Page) => {
26 // The editor pane is focused by default, so we need to escape or it will

Callers 1

Calls 1

authedRequestFunction · 0.90

Tested by

no test coverage detected