@ton/core
Version:
Core TypeScript library that implements low level primitives for TON blockchain.
20 lines (18 loc) • 583 B
text/typescript
/**
* Copyright (c) Whales Corp.
* All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { BitString } from "./BitString";
import { Cell } from "./Cell";
import { CellType } from "./CellType";
describe('Cell', () => {
it('should construct', () => {
let cell = new Cell();
expect(cell.type).toBe(CellType.Ordinary);
expect(cell.bits.equals(new BitString(Buffer.alloc(0), 0, 0))).toEqual(true);
expect(cell.refs).toEqual([]);
});
});