var assert = require('assert') var sinon = require('sinon') var path = require('path') var contractNamer = require(path.join(__dirname, '..', '..', 'old-ui', 'lib', 'contract-namer.js')) describe('contractNamer', function () { beforeEach(function () { this.sinon = sinon.createSandbox() }) afterEach(function () { this.sinon.restore() }) describe('naming a contract', function () { it('should return nothing for an unknown random account', function () { const input = '0x2386F26FC10000' const output = contractNamer(input) assert.deepEqual(output, null) }) it('should accept identities as an optional second parameter', function () { const input = '0x2386F26FC10000'.toLowerCase() const expected = 'bar' const identities = {} identities[input] = { name: expected } const output = contractNamer(input, identities) assert.deepEqual(output, expected) }) it('should check for identities case insensitively', function () { const input = '0x2386F26FC10000'.toLowerCase() const expected = 'bar' const identities = {} identities[input] = { name: expected } const output = contractNamer(input.toUpperCase(), identities) assert.deepEqual(output, expected) }) }) }) value='59e6adf4a32574137618e96c14fa28f42ba7759d'/> FreeBSD graphics obsolete development ports (https://github.com/freebsd/freebsd-ports-graphics)
aboutsummaryrefslogtreecommitdiffstats
path: root/lang/stackless_python
Commit message (Expand)AuthorAgeFilesLines
* Fix stackless build broken by the recent shared-build commit.perky2004-03-221-1/+9
* - Update stackless_python to 2.3.3 as of 040225 and unmark BROKEN.perky2004-02-272-13/+20
* Utilize the EXPIRATION_DATE tag for these ports scheduled for removal.kris2004-02-221-1/+2
* Schedule broken port for removal on April 7kris2004-02-081-0/+1
* Comment out post-patch target for a while. It breaks kris's INDEX build.perky2003-08-011-6/+6
* Mark BROKEN: stackless is not ported to Python-2.2.3 base, yet.perky2003-06-241-0/+1
* Upgrade to 2.2.3 baseperky2003-06-042-2/+2
* Destroy pkg-comment for some of the stranger uses in the tree,ade2003-03-07