File Explorer

/proc/self/root/var/runtime/node_modules/@aws-sdk/node_modules/aws-crt/lib/common

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

promise.spec.ts909 B · 32 lines
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ import * as promise from "./promise"; jest.setTimeout(10000); test('Lifted promise - resolve', async () => {    let liftedPromise : promise.LiftedPromise<void> = promise.newLiftedPromise<void>();     setImmediate(() => { liftedPromise.resolve();});     await liftedPromise.promise;}); test('Lifted promise - reject', async () => {    let liftedPromise : promise.LiftedPromise<void> = promise.newLiftedPromise<void>();     setImmediate(() => { liftedPromise.reject("Fail");});     await expect(liftedPromise.promise).rejects.toMatch("Fail");}); test('Lifted promise - body function execution', async () => {    let liftedPromise : promise.LiftedPromise<void> = promise.newLiftedPromise<void>((resolve, reject) => {        resolve();    });     await liftedPromise.promise;});