1
0
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:
Matthias Kretschmann 2020-01-31 00:15:55 +01:00
parent 2a4832574c
commit 8d556b2a9f
Signed by: m
GPG Key ID: 606EEEF3C479A91F
52 changed files with 35 additions and 35 deletions

View File

@ -1,4 +1,4 @@
import { Config } from '../src'
import { Config } from '../../src'
import HDWalletProvider from '@truffle/hdwallet-provider'
const configJson: Config = {

View File

@ -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

View File

@ -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

View File

@ -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()

View File

@ -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

View File

@ -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

View File

@ -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)', () => {

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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: {

View File

@ -1,5 +1,5 @@
import assert from 'assert'
import * as squid from '../src/squid'
import * as squid from '../../src/squid'
describe('Squid', () => {
describe('interface', () => {

View File

@ -1,4 +1,4 @@
import { generateId } from '../src/utils/GeneratorHelpers'
import { generateId } from '../../src/utils/GeneratorHelpers'
export default class TestIdGenerator {
public static generatePrefixedId() {

View File

@ -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) {

View File

@ -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)

View File

@ -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)

View File

@ -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'

View File

@ -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)

View File

@ -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', () => {

View File

@ -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)