UNPKG

golos-lib-js

Version:

Golos-js the JavaScript library with API for GOLOS blockchain

24 lines (16 loc) 571 B
import assert from 'assert' import golos from '../src' import { camelCase } from '../src/utils' import { methods_0_25_3 } from './methods_by_version' describe('golos.methods', () => { it('has all generated methods', () => { const methods = methods_0_25_3 .map( m => `${camelCase(m)}`) .sort() let libMethods = Object.keys(golos.api.Golos.prototype) .filter( m => !m.endsWith('With')) .filter( m => !m.endsWith('Async')) .sort() assert.deepEqual(libMethods, methods) }) })