aboutsummaryrefslogtreecommitdiffstats
path: root/contracts/utils/test/libs.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-12-05 00:05:57 +0800
committerGitHub <noreply@github.com>2018-12-05 00:05:57 +0800
commitc43ba6b3c7082544f8aa8f1c297eb271ca079ea4 (patch)
treed81232245f6be7412d1273c20bf0b8be58ef7277 /contracts/utils/test/libs.ts
parent79f5e36edbd8a4483aac46032092dece95bb0b4c (diff)
parent18489161c6871ad7e76967644f91cad2a9be1e85 (diff)
downloaddexon-sol-tools-c43ba6b3c7082544f8aa8f1c297eb271ca079ea4.tar
dexon-sol-tools-c43ba6b3c7082544f8aa8f1c297eb271ca079ea4.tar.gz
dexon-sol-tools-c43ba6b3c7082544f8aa8f1c297eb271ca079ea4.tar.bz2
dexon-sol-tools-c43ba6b3c7082544f8aa8f1c297eb271ca079ea4.tar.lz
dexon-sol-tools-c43ba6b3c7082544f8aa8f1c297eb271ca079ea4.tar.xz
dexon-sol-tools-c43ba6b3c7082544f8aa8f1c297eb271ca079ea4.tar.zst
dexon-sol-tools-c43ba6b3c7082544f8aa8f1c297eb271ca079ea4.zip
Merge pull request #1373 from 0xProject/feature/contracts-monorepo-3
Contracts monorepo III
Diffstat (limited to 'contracts/utils/test/libs.ts')
-rw-r--r--contracts/utils/test/libs.ts34
1 files changed, 34 insertions, 0 deletions
diff --git a/contracts/utils/test/libs.ts b/contracts/utils/test/libs.ts
new file mode 100644
index 000000000..81596b2e4
--- /dev/null
+++ b/contracts/utils/test/libs.ts
@@ -0,0 +1,34 @@
+import { chaiSetup, provider, txDefaults, web3Wrapper } from '@0x/contracts-test-utils';
+import { BlockchainLifecycle } from '@0x/dev-utils';
+import * as chai from 'chai';
+
+import { TestConstantsContract } from '../generated-wrappers/test_constants';
+import { artifacts } from '../src';
+
+chaiSetup.configure();
+const expect = chai.expect;
+
+const blockchainLifecycle = new BlockchainLifecycle(web3Wrapper);
+
+describe('Libs', () => {
+ beforeEach(async () => {
+ await blockchainLifecycle.startAsync();
+ });
+ afterEach(async () => {
+ await blockchainLifecycle.revertAsync();
+ });
+
+ describe('LibConstants', () => {
+ describe('ZRX_ASSET_DATA', () => {
+ it('should have the correct ZRX_ASSET_DATA', async () => {
+ const testConstants = await TestConstantsContract.deployFrom0xArtifactAsync(
+ artifacts.TestConstants,
+ provider,
+ txDefaults,
+ );
+ const isValid = await testConstants.assertValidZrxAssetData.callAsync();
+ expect(isValid).to.be.equal(true);
+ });
+ });
+ });
+});