deno.land / std@0.166.0 / testing / mock_examples / internals_injection.ts

internals_injection.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.export function multiply(a: number, b: number): number { return a * b;}
export function square(value: number): number { return _internals.multiply(value, value);}
export const _internals = { multiply };
std

Version Info

Tagged at
a year ago