mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 05:42:32 +03:00
Removed querystring dep from members tests
refs: https://github.com/TryGhost/Toolbox/issues/158 - if we had to combine a large list of params then this would make sense - we could/should also add a .query() method to our agent - however, I don't think this is worthwhile/necessary for just 2 params right now :)
This commit is contained in:
parent
527cb01680
commit
da44ccaf11
@ -1,4 +1,3 @@
|
||||
const querystring = require('querystring');
|
||||
const assert = require('assert');
|
||||
const {agentProvider, mockManager, fixtureManager, matchers} = require('../../../utils/e2e-framework');
|
||||
const {anyString, anyArray, anyObjectId, anyEtag, anyUuid, anyErrorId, anyDate} = matchers;
|
||||
@ -50,7 +49,7 @@ describe('Members API', function () {
|
||||
};
|
||||
|
||||
const {body} = await agent
|
||||
.post(`members/?${querystring.stringify(queryParams)}`)
|
||||
.post('/members/?send_email=true&email_type=signup')
|
||||
.body({members: [member]})
|
||||
.expectStatus(201)
|
||||
.matchBodySnapshot({
|
||||
|
Loading…
Reference in New Issue
Block a user