fix: randoms

This commit is contained in:
cha0s 2023-02-03 21:26:01 -06:00
parent 97a63dcd4d
commit 749e42743e

View File

@ -1,4 +1,5 @@
import * as Math from './math';
import {random, randomNumber} from './random';
import * as Rectangle from './rectangle';
import * as Vector from './vector';
@ -16,7 +17,11 @@ export {Rectangle, Vector};
export const hooks = {
'@avocado/behavior.globals': () => ({
Math,
Math: {
...Math,
random,
randomNumber,
},
Rectangle,
Vector,
}),