Skip to content

Instantly share code, notes, and snippets.

@sharvit
Last active January 11, 2018 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharvit/559dbeec83239a9fc9bd77e39dc2c579 to your computer and use it in GitHub Desktop.
Save sharvit/559dbeec83239a9fc9bd77e39dc2c579 to your computer and use it in GitHub Desktop.
error while running test on foreman axios branch
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 11): Error: expect(received).toEqual(expected)
Expected value to equal:
[{"payload": {"id": "operatingsystem", "search": "/hosts?search=os_title=~VAL~", "title": "OS Distribution", "url": "statistics/operatingsystem"}, "type": "STATISTICS_DATA_REQUEST"}, {"payload": {"id": "architecture", "search": "/hosts?search=facts.architecture=~VAL~", "title": "Architecture Distribution", "url": "statistics/architecture"}, "type": "STATISTICS_DATA_REQUEST"}, {"payload": {"data": [["centOS 7.1", 6]], "id": "operatingsystem", "search": "/hosts?search=os_title=~VAL~", "title": "OS Distribution", "url": "statistics/operatingsystem"}, "type": "STATISTICS_DATA_SUCCESS"}, {"payload": {"data": [["x86_64", 6]], "id": "architecture", "search": "/hosts?search=facts.architecture=~VAL~", "title": "Architecture Distribution", "url": "statistics/architecture"}, "type": "STATISTICS_DATA_SUCCESS"}]
Received:
+ Array []
Difference:
- Expected
+ Received
-Array [
- Object {
- "payload": Object {
- "id": "operatingsystem",
- "search": "/hosts?search=os_title=~VAL~",
- "title": "OS Distribution",
- "url": "statistics/operatingsystem",
- },
- "type": "STATISTICS_DATA_REQUEST",
- },
- Object {
- "payload": Object {
- "id": "architecture",
- "search": "/hosts?search=facts.architecture=~VAL~",
- "title": "Architecture Distribution",
- "url": "statistics/architecture",
- },
- "type": "STATISTICS_DATA_REQUEST",
- },
- Object {
- "payload": Object {
- "data": Array [
- Array [
- "centOS 7.1",
- 6,
- ],
- ],
- "id": "operatingsystem",
- "search": "/hosts?search=os_title=~VAL~",
- "title": "OS Distribution",
- "url": "statistics/operatingsystem",
- },
- "type": "STATISTICS_DATA_SUCCESS",
- },
- Object {
- "payload": Object {
- "data": Array [
- Array [
- "x86_64",
- 6,
- ],
- ],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment