Ensures the test suites are properly formed for vscode jasmine plugin (#4901)

* Ensures the test suites are properly formed for vscode jasmine plugin

* nit
This commit is contained in:
Florent Vilmart
2018-07-19 07:05:27 +00:00
committed by GitHub
parent efb6c63a95
commit a2c40367fa
4 changed files with 12 additions and 41 deletions

View File

@@ -262,21 +262,6 @@ describe('schemas', () => {
});
});
it('asks for the master key if you use the rest key', done => {
request.post({
url: 'http://localhost:8378/1/schemas',
json: true,
headers: restKeyHeaders,
body: {
className: 'MyClass',
},
}, (error, response, body) => {
expect(response.statusCode).toEqual(403);
expect(body.error).toEqual('unauthorized: master key is required');
done();
});
});
it('sends an error if you use mismatching class names', done => {
request.post({
url: 'http://localhost:8378/1/schemas/A',
@@ -1248,7 +1233,7 @@ describe('schemas', () => {
})
});
it('should throw with invalid value', done => {
it('should throw if permission is number', done => {
request.post({
url: 'http://localhost:8378/1/schemas/AClass',
headers: masterKeyHeaders,
@@ -1266,7 +1251,7 @@ describe('schemas', () => {
})
});
it('should throw with invalid value', done => {
it('should throw if permission is empty string', done => {
request.post({
url: 'http://localhost:8378/1/schemas/AClass',
headers: masterKeyHeaders,