Giter Club home page Giter Club logo

aurras-event-feed-substrate-js's People

Contributors

hanumantappabudihal avatar muhammedirfan avatar shanithkk avatar

Watchers

 avatar  avatar  avatar

aurras-event-feed-substrate-js's Issues

Missing Test Case for custom types

Description
Missing test case for chain custom types

Suggestion
Add Test case to check if the custom type provided through environment variables is defined in Polkadot Type Registry

Add separate module for mock data generator or handle the mock data for Unit Testing purpose.

I notified something about the mock data preparation in test methods. Can we make more dynamic way to handle the mock data for unit testing purpose ? It's good have a some kind of mock data generator or mock data handler as separate module.

Input test data and expected result should feed from mock generator , so that we can add the different cases to unit test method just adding the different test data instead of writing each unit test method for each cases. And also it help us to use the common test data between different modules.

Line number from 77 to 60 in event.test.ts

" const mockEvents = [
{ "section": "system", "method": "ExtrinsicSuccess" }, { "section": "system", "method": "ExtrinsicSuccess" },
{ "section": "system", "method": "ExtrinsicFailed" }, { "section": "system", "method": "ExtrinsicFailed" },
{ "section": "balance", "method": "ExtrinsicFailed" }, { "section": "balance", "method": "ExtrinsicFailed" },
]; ];"

image

Improve configuration helper module.

Probably move the configuration from commonjs module to typescript and breakdown the functionality to classes and factory methods if necessary to separate files with a single responsibility.

Need to change the dynamic configuration implementation.

Logger configurations should be loaded as array of logger configuration objects.

Please Include the below implementation

  1. Add the module to validated the array of list in json file.( list of logger configurations). Make it very generic module , so we can use the same json validator in other part also.
  2. Parse the single line logger configuration values into proper json structure.
    something like Type : console ,
    Level : Info
    Location : Console output
  3. System should assign the proper values each properties regardless the order in the configuration file.
  4. Logger Configuration passed through environment variable should have type, level, and location

Link to PR with this issue #2

Configuration document misleading

Environment

Description
Users finding difficulty in specifying custom configuration

Suggestion
Require env using dotenv and nps for serve

Test Config not found for NODE_ENV=test

Environment
Test

Description
On running yarn test with NODE_ENV=test

Users end up with following error.

console.error WARNING: NODE_ENV value of 'test' did not match any deployment config file names.

Suggestion
Add configuration for Test environment

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.