mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
move tests
This commit is contained in:
parent
2a4832574c
commit
8d556b2a9f
@ -1,4 +1,4 @@
|
||||
import { Config } from '../src'
|
||||
import { Config } from '../../src'
|
||||
import HDWalletProvider from '@truffle/hdwallet-provider'
|
||||
|
||||
const configJson: Config = {
|
@ -1,7 +1,7 @@
|
||||
import { assert } from 'chai'
|
||||
import { config } from '../config'
|
||||
import { getMetadata } from '../utils'
|
||||
import { Ocean, Account } from '../../src' // @oceanprotocol/squid
|
||||
import { Ocean, Account } from '../../../src' // @oceanprotocol/squid
|
||||
|
||||
describe('Asset Owners', () => {
|
||||
let ocean: Ocean
|
@ -1,6 +1,6 @@
|
||||
import { assert } from 'chai'
|
||||
import { config } from '../config'
|
||||
import { Ocean, Account } from '../../src' // @oceanprotocol/squid
|
||||
import { Ocean, Account } from '../../../src' // @oceanprotocol/squid
|
||||
|
||||
describe('Authentication Token', () => {
|
||||
let ocean: Ocean
|
@ -1,7 +1,7 @@
|
||||
import { assert } from 'chai'
|
||||
|
||||
import { config } from '../config'
|
||||
import { Ocean, Account, DDO, MetaData, ComputeJobStatus } from '../../src' // @oceanprotocol/squid
|
||||
import { Ocean, Account, DDO, MetaData, ComputeJobStatus } from '../../../src' // @oceanprotocol/squid
|
||||
import { getMetadata, getComputeServiceExample } from '../utils'
|
||||
|
||||
const metadataAsset = getMetadata()
|
@ -4,7 +4,7 @@ import * as fs from 'fs'
|
||||
import { config } from '../config'
|
||||
import { getMetadata } from '../utils'
|
||||
|
||||
import { Ocean, DDO, Account, ConditionState } from '../../src' // @oceanprotocol/squid
|
||||
import { Ocean, DDO, Account, ConditionState } from '../../../src' // @oceanprotocol/squid
|
||||
|
||||
describe('Consume Asset', () => {
|
||||
let ocean: Ocean
|
@ -4,7 +4,7 @@ import * as fs from 'fs'
|
||||
import { config } from '../config'
|
||||
import { getMetadata } from '../utils'
|
||||
|
||||
import { Ocean, Account, DDO } from '../../src' // @oceanprotocol/squid
|
||||
import { Ocean, Account, DDO } from '../../../src' // @oceanprotocol/squid
|
||||
|
||||
describe('Consume Asset (Brizo)', () => {
|
||||
let ocean: Ocean
|
@ -4,7 +4,7 @@ import * as fs from 'fs'
|
||||
import { config } from '../config'
|
||||
import { getMetadata } from '../utils'
|
||||
|
||||
import { Ocean, Account, DDO } from '../../src' // @oceanprotocol/squid
|
||||
import { Ocean, Account, DDO } from '../../../src' // @oceanprotocol/squid
|
||||
|
||||
// Ensure that your network is fast enought and you have some free ram before run it.
|
||||
xdescribe('Consume Asset (Large size)', () => {
|
@ -2,7 +2,7 @@ import { assert } from 'chai'
|
||||
|
||||
import { config } from '../config'
|
||||
|
||||
import { Ocean, templates, conditions, utils, Account, Keeper } from '../../src' // @oceanprotocol/squid
|
||||
import { Ocean, templates, conditions, utils, Account, Keeper } from '../../../src' // @oceanprotocol/squid
|
||||
|
||||
const { LockRewardCondition, EscrowReward, AccessSecretStoreCondition } = conditions
|
||||
|
@ -2,7 +2,7 @@ import { assert } from 'chai'
|
||||
|
||||
import { config } from '../config'
|
||||
|
||||
import { Ocean, templates, conditions, utils, Account, Keeper } from '../../src' // @oceanprotocol/squid
|
||||
import { Ocean, templates, conditions, utils, Account, Keeper } from '../../../src' // @oceanprotocol/squid
|
||||
|
||||
const { LockRewardCondition, EscrowReward, ComputeExecutionCondition } = conditions
|
||||
|
@ -4,7 +4,7 @@ import { config } from '../config'
|
||||
|
||||
import { generateMetadata } from '../utils'
|
||||
|
||||
import { Ocean, Account, DDO } from '../../src' // @oceanprotocol/squid
|
||||
import { Ocean, Account, DDO } from '../../../src' // @oceanprotocol/squid
|
||||
|
||||
describe('Search Asset', () => {
|
||||
let ocean: Ocean
|
@ -2,7 +2,7 @@ import { assert } from 'chai'
|
||||
|
||||
import { config } from '../config'
|
||||
|
||||
import { Ocean, Account, DID } from '../../src' // @oceanprotocol/squid
|
||||
import { Ocean, Account, DID } from '../../../src' // @oceanprotocol/squid
|
||||
|
||||
describe('Secret Store', () => {
|
||||
let ocean: Ocean
|
@ -2,7 +2,7 @@ import { assert } from 'chai'
|
||||
|
||||
import { config } from '../config'
|
||||
|
||||
import { Ocean, Account, DDO } from '../../src' // @oceanprotocol/squid
|
||||
import { Ocean, Account, DDO } from '../../../src' // @oceanprotocol/squid
|
||||
|
||||
// WARN: not integration test. It has been done here because constant values
|
||||
// depends on the first account on spree (only accessible from integration test)
|
@ -2,7 +2,7 @@ import { assert } from 'chai'
|
||||
|
||||
import { config } from '../config'
|
||||
|
||||
import { Ocean, OceanPlatformTechStatus } from '../../src' // @oceanprotocol/squid
|
||||
import { Ocean, OceanPlatformTechStatus } from '../../../src' // @oceanprotocol/squid
|
||||
|
||||
describe('Versions', () => {
|
||||
let ocean: Ocean
|
@ -1,6 +1,6 @@
|
||||
import { MetaData, MetaDataAlgorithm } from '../../src' // @oceanprotocol/squid
|
||||
import { ServiceType } from '../../src/ddo/Service'
|
||||
import ddoExample from '../../test/__fixtures__/ddo.json'
|
||||
import { MetaData, MetaDataAlgorithm } from '../../../src' // @oceanprotocol/squid
|
||||
import { ServiceType } from '../../../src/ddo/Service'
|
||||
import ddoExample from '../../unit/__fixtures__/ddo.json'
|
||||
|
||||
const metadata: Partial<MetaData> = {
|
||||
main: {
|
@ -1,5 +1,5 @@
|
||||
import assert from 'assert'
|
||||
import * as squid from '../src/squid'
|
||||
import * as squid from '../../src/squid'
|
||||
|
||||
describe('Squid', () => {
|
||||
describe('interface', () => {
|
@ -1,4 +1,4 @@
|
||||
import { generateId } from '../src/utils/GeneratorHelpers'
|
||||
import { generateId } from '../../src/utils/GeneratorHelpers'
|
||||
|
||||
export default class TestIdGenerator {
|
||||
public static generatePrefixedId() {
|
@ -1,4 +1,4 @@
|
||||
import ContractBase from '../../src/keeper/contracts/ContractBase'
|
||||
import ContractBase from '../../../src/keeper/contracts/ContractBase'
|
||||
|
||||
export default class ContractBaseMock extends ContractBase {
|
||||
public async initMock(config: any) {
|
@ -1,11 +1,11 @@
|
||||
import { assert, spy, use } from 'chai'
|
||||
import spies from 'chai-spies'
|
||||
import { Ocean } from '../../src/ocean/Ocean'
|
||||
import { Aquarius, SearchQuery } from '../../src/aquarius/Aquarius'
|
||||
import { DDO } from '../../src/ddo/DDO'
|
||||
import DID from '../../src/ocean/DID'
|
||||
import { Ocean } from '../../../src/ocean/Ocean'
|
||||
import { Aquarius, SearchQuery } from '../../../src/aquarius/Aquarius'
|
||||
import { DDO } from '../../../src/ddo/DDO'
|
||||
import DID from '../../../src/ocean/DID'
|
||||
import config from '../config'
|
||||
import { LoggerInstance } from '../../src/utils'
|
||||
import { LoggerInstance } from '../../../src/utils'
|
||||
|
||||
use(spies)
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Config, LogLevel } from '../src/models/Config'
|
||||
import { LoggerInstance } from '../src/utils'
|
||||
import { Config, LogLevel } from '../../src/models/Config'
|
||||
import { LoggerInstance } from '../../src/utils'
|
||||
|
||||
LoggerInstance.setLevel(LogLevel.Error)
|
||||
|
@ -1,9 +1,9 @@
|
||||
import { assert, expect, spy, use } from 'chai'
|
||||
import spies from 'chai-spies'
|
||||
|
||||
import { DDO } from '../../src/ddo/DDO'
|
||||
import { Service } from '../../src/ddo/Service'
|
||||
import { Ocean } from '../../src/ocean/Ocean'
|
||||
import { DDO } from '../../../src/ddo/DDO'
|
||||
import { Service } from '../../../src/ddo/Service'
|
||||
import { Ocean } from '../../../src/ocean/Ocean'
|
||||
import config from '../config'
|
||||
import TestContractHandler from '../keeper/TestContractHandler'
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { assert, expect, spy, use } from 'chai'
|
||||
import spies from 'chai-spies'
|
||||
import { EventHandler } from '../../src/keeper/EventHandler'
|
||||
import { Ocean } from '../../src/ocean/Ocean'
|
||||
import { EventHandler } from '../../../src/keeper/EventHandler'
|
||||
import { Ocean } from '../../../src/ocean/Ocean'
|
||||
import config from '../config'
|
||||
|
||||
use(spies)
|
@ -1,10 +1,10 @@
|
||||
import { assert } from 'chai'
|
||||
import sinon from 'sinon'
|
||||
|
||||
import { Ocean } from '../../src/ocean/Ocean'
|
||||
import { Ocean } from '../../../src/ocean/Ocean'
|
||||
import config from '../config'
|
||||
import { Account } from '../../src/squid'
|
||||
import { OceanCompute, ComputeJobStatus } from '../../src/ocean/OceanCompute'
|
||||
import { Account } from '../../../src/squid'
|
||||
import { OceanCompute, ComputeJobStatus } from '../../../src/ocean/OceanCompute'
|
||||
import TestIdGenerator from '../TestIdGenerator'
|
||||
|
||||
describe('OceanCompute', () => {
|
@ -1,7 +1,7 @@
|
||||
import { assert, expect, spy, use } from 'chai'
|
||||
import spies from 'chai-spies'
|
||||
|
||||
import { SubscribablePromise } from '../../src/utils/SubscribablePromise'
|
||||
import { SubscribablePromise } from '../../../src/utils/SubscribablePromise'
|
||||
|
||||
use(spies)
|
||||
|
Loading…
Reference in New Issue
Block a user