UNPKG

@strandgeek/powerup

Version:

PowerUP is a javascript library that makes managing a LUKSO Universal Profile easy

28 lines (27 loc) 922 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const globals_1 = require("@jest/globals"); const index_1 = require("./index"); (0, globals_1.describe)('Storage', () => { (0, globals_1.describe)('Singleton', () => { (0, globals_1.it)('simple schema', () => { const call = jest.fn(); const mockContract = { methods: { 'getData(bytes32)': jest.fn().mockReturnValue({ call, }) } }; const storage = new index_1.Storage('abc', mockContract, { name: { keyType: 'Singleton', name: 'MyName', valueType: 'address', }, }); console.log(storage.name.get('Opa')); (0, globals_1.expect)(1).toBe(3); }); }); });