Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: e2e test case for fetchtask #64

Merged
merged 9 commits into from
Jan 12, 2020

Conversation

rishabhKalakoti
Copy link
Contributor

@rishabhKalakoti rishabhKalakoti commented Dec 29, 2019

Description

e2e tests for fetchtask [key]

  • no config file for fetchtask
  • incorrect key for fetchtask
  • display completed task with fetchtask key
  • display incomplete tasks with fetchtask key
  • no more tasks available
  • display next task with fetchtask

As of now the tests are not working as desired especially for the cases where all tasks have been solved.
All tests working correctly

#57 introduced a few bugs which have now been fixed.

addresses #28

Type of change

  • New feature (non-breaking change which adds functionality)

@rishabhKalakoti rishabhKalakoti changed the title [WIP] test: e2e test for fetchtask test: e2e test for fetchtask Dec 30, 2019
@jamesgeorge007 jamesgeorge007 changed the title test: e2e test for fetchtask chore: e2e test case for fetchtask Dec 31, 2019
Copy link
Member

@jamesgeorge007 jamesgeorge007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left couple of comments.

__e2e__/commands/fetchtask.test.js Outdated Show resolved Hide resolved
__e2e__/commands/fetchtask.test.js Outdated Show resolved Hide resolved
__e2e__/commands/fetchtask.test.js Show resolved Hide resolved
src/commands/tasks.js Outdated Show resolved Hide resolved
__e2e__/commands/fetchtask.test.js Outdated Show resolved Hide resolved
__e2e__/commands/fetchtask.test.js Outdated Show resolved Hide resolved
__e2e__/commands/fetchtask.test.js Outdated Show resolved Hide resolved
__e2e__/commands/fetchtask.test.js Outdated Show resolved Hide resolved
@jamesgeorge007 jamesgeorge007 changed the title chore: e2e test case for fetchtask [WIP] chore: e2e test case for fetchtask Jan 9, 2020
@jamesgeorge007 jamesgeorge007 changed the title [WIP] chore: e2e test case for fetchtask chore: e2e test case for fetchtask Jan 9, 2020
@jamesgeorge007 jamesgeorge007 merged commit 144ecc2 into madlabsinc:next Jan 12, 2020
@jamesgeorge007 jamesgeorge007 added this to the v1.3.0 milestone Jan 12, 2020
jamesgeorge007 added a commit that referenced this pull request Apr 16, 2020
* chore: e2e test case for fetchtask (#64)

* test: e2e test for fetchtask (incorrect tests/ code)

* refactor: replaced var by let

* test: tests giving incorrect snaps, 'incomplete tasks' and 'next task'

* refactor: updated code to not reject promises when task is printed

* refactor: tasks.js updated

* fix: deleted extra files created

* refactor: style update

* refactor: style changes

* refactor: destructuring

* chore: audit deps

* Simplify PR Template (#75)

* docs: improvise PR template

* docs: update PR template

Co-authored-by: James George <jamesgeorge998001@gmail.com>

* chore(deps): [security] bump acorn from 6.1.1 to 6.4.1 (#77)

Bumps [acorn](https://github.com/acornjs/acorn) from 6.1.1 to 6.4.1. **This update includes a security fix.**
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](acornjs/acorn@6.1.1...6.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore: audit deps

* refactor: use object literal rather than an array

* chore: minor tweak

* fix: regression with create repository implemenation (#80)

* fix: regression

consume GitHub API the recommended way

* fix: lint

Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>

* chore: drop showcommands (#82)

* refactor: dropping showcommands as per #72

* chore: drop cli-table

* refactor: avoid newline character

Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>

* 1.3.0-beta.0

* test: update snapshots

* refactor: remove unreachable code

* chore: add ora spinner

* refactor: format config file

* refactor: dead code elimination

* refactor: stick to best practices

* test: update snapshots

* chore: better logs

* docs: update info relating to fetchtask command

* test: update snapshots

* docs: remove information concerning showcommands

* docs: update info

* 1.3.0

* test: update snapshots

Co-authored-by: Rishabh Kalakoti <23037053+rishabhKalakoti@users.noreply.github.com>
Co-authored-by: Annu <annujolly17@gmail.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Abhijith Neil Abraham <abhijithneilabrahampk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants