github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/js/src/contracts/compile.test.ts (about)

     1  import assert from 'assert';
     2  import { tokenizeLinks } from './compile';
     3  
     4  describe('compilation helpers', function () {
     5    it('should tokenize links', () => {
     6      const links = {
     7        'dir/Errors.sol': {
     8          Errors: [],
     9        },
    10        'lib/Utils.sol': {
    11          Utils: [],
    12        },
    13      };
    14  
    15      const actual = tokenizeLinks(links);
    16      assert.equal(actual[0], 'dir/Errors.sol:Errors');
    17      assert.equal(actual[1], 'lib/Utils.sol:Utils');
    18    });
    19  });