UNPKG

@abcpros/bitcore-wallet-service

Version:
31 lines (25 loc) 806 B
'use strict'; var _ = require('lodash'); var chai = require('chai'); var sinon = require('sinon'); var should = chai.should(); var { Advertisement } = require('../../ts_build/lib/model/advertisement'); var Bitcore = require('@abcpros/bitcore-lib'); describe("#Advertisement", function() { describe("#create", function() { it("should create Advertisement", function() { var x = Advertisement.create({ title: "Test Title"}); should.exist(x); }); }); describe("#fromObj", function() { it("should create Advertisement", function() { var x = Advertisement.fromObj({ title: "Test Title" }); should.exist(x); }); }); // describe("#toObject", function() { // var x = Advertisement.toObject({ title: "Test Title" }); // should.exist(x); // }) });