DAVFoundation / dav-js

Enable integration of JavaScript, TypeScript, and Node.js code with the DAV Network
https://developers.dav.network/
MIT License
75 stars 50 forks source link

Travis CI failing #139

Open mariolo1985 opened 5 years ago

mariolo1985 commented 5 years ago

Expected Behavior

Travis CI should complete the config scripts successfully

Current Behavior

Failing on multiple steps

Possible Solution

Steps to Reproduce (for bugs)

  1. Clone repo
  2. Run npm install
  3. Run the following Travis CI scripts:
    • npm run tslint
    • npm run jest
    • npm run spellcheck
    • npm run tsc
    • npm run typedoc
    • npm run create-dist
  4. Some of these CI scripts fails

Context

Your Environment

abdchehadeh commented 5 years ago

hey @mariolo1985

I am working on fixing the last error in

src/tests/Message.test.ts

I have worked on the Kafka and Contract test errors.

    Expected value to be:
      "selfId"
    Received:
      [["peerId", {"_messageType": "message", "_protocol": "drone_charging", "senderId": "selfId", "ttl": undefined}, {"apiSeedUrls": [""], "blockchainType": "ropsten", "ethNodeUrl": "https://ropsten.infura.io/wUiZtmeZ1KwjFrcC8zRO", "identityTtl": 10000, "kafkaBrowserPollingInterval": 1000, "kafkaBrowserRequestTimeout": 500, "kafkaSeedUrls": [""], "missionConsumerTtl": 10000, "missionProviderTtl": 10000, "needTtl": 10000, "needTypeTtl": 10000}]]

    Difference:

      Comparing two different types of values. Expected string but received array.

      68 |       const messageParams = new MessageParams({});
      69 |       await message.respond(messageParams);
    > 70 |       expect(kafkaMock.sendParams.mock.calls).toBe(selfId);
      71 |     });
      72 |   });
      73 | });

I tried to follow the code as much, but my head is over the place now =D

abdchehadeh commented 5 years ago

https://travis-ci.org/abdchehadeh/dav-js/jobs/519704571 I was able to create a dist locally, and all the scripts ran successfully except the spellcheck I wont create a PR, but check what I did.