Skip to content
Snippets Groups Projects
Commit 358754db authored by Lucas Fernandes de Oliveira's avatar Lucas Fernandes de Oliveira
Browse files

Merge branch 'issue/81' into 'develop'

Issue #81: Fix orthography from tests

See merge request c3sl/blendb!68
parents 14f01727 61a67e14
Branches
No related tags found
1 merge request!68Issue #81: Fix orthography from tests
Pipeline #16546 passed
...@@ -76,7 +76,7 @@ describe("API collect controller", () => { ...@@ -76,7 +76,7 @@ describe("API collect controller", () => {
.expect((res: any) => { .expect((res: any) => {
const message = "Query execution failed: " + const message = "Query execution failed: " +
"Could not construct query with the parameters given."; "Could not construct query with the given parameters.";
const error = "The source named 'thisisjustatest' was not found"; const error = "The source named 'thisisjustatest' was not found";
expect(res.body).to.be.an("object"); expect(res.body).to.be.an("object");
expect(res.body).to.have.property("message"); expect(res.body).to.have.property("message");
...@@ -93,7 +93,7 @@ describe("API collect controller", () => { ...@@ -93,7 +93,7 @@ describe("API collect controller", () => {
.expect(500) .expect(500)
.expect((res: any) => { .expect((res: any) => {
const message = "Query execution failed: " + const message = "Query execution failed: " +
"Could not construct query with the parameters given."; "Could not construct query with the given parameters.";
const error = "The 'fields:0' wasn't informed on json"; const error = "The 'fields:0' wasn't informed on json";
expect(res.body).to.be.an("object"); expect(res.body).to.be.an("object");
expect(res.body).to.have.property("message"); expect(res.body).to.have.property("message");
...@@ -124,7 +124,7 @@ describe("API collect controller", () => { ...@@ -124,7 +124,7 @@ describe("API collect controller", () => {
.expect(500) .expect(500)
.expect((res: any) => { .expect((res: any) => {
const message = "Query execution failed: " + const message = "Query execution failed: " +
"Could not construct query with the parameters given."; "Could not construct query with the given parameters.";
const error = "The value '1' from 'fields:0' isn't listed on enumtype:0"; const error = "The value '1' from 'fields:0' isn't listed on enumtype:0";
expect(res.body).to.be.an("object"); expect(res.body).to.be.an("object");
expect(res.body).to.have.property("message"); expect(res.body).to.have.property("message");
...@@ -157,7 +157,7 @@ describe("API collect controller", () => { ...@@ -157,7 +157,7 @@ describe("API collect controller", () => {
.expect((res: any) => { .expect((res: any) => {
const message = "Query execution failed: " + const message = "Query execution failed: " +
"Could not construct query with the parameters given."; "Could not construct query with the given parameters.";
const error = "The value 'nope' from 'fields:0' isn't a type integer"; const error = "The value 'nope' from 'fields:0' isn't a type integer";
expect(res.body).to.be.an("object"); expect(res.body).to.be.an("object");
expect(res.body).to.have.property("message"); expect(res.body).to.have.property("message");
...@@ -176,7 +176,7 @@ describe("API collect controller", () => { ...@@ -176,7 +176,7 @@ describe("API collect controller", () => {
.expect((res: any) => { .expect((res: any) => {
const message = "Query execution failed: " + const message = "Query execution failed: " +
"Could not construct query with the parameters given."; "Could not construct query with the given parameters.";
const error = "The value 'notafloat' from 'fields:1' isn't a type float"; const error = "The value 'notafloat' from 'fields:1' isn't a type float";
expect(res.body).to.be.an("object"); expect(res.body).to.be.an("object");
expect(res.body).to.have.property("message"); expect(res.body).to.have.property("message");
...@@ -195,7 +195,7 @@ describe("API collect controller", () => { ...@@ -195,7 +195,7 @@ describe("API collect controller", () => {
.expect((res: any) => { .expect((res: any) => {
const message = "Query execution failed: " + const message = "Query execution failed: " +
"Could not construct query with the parameters given."; "Could not construct query with the given parameters.";
const error = "The value '1' from 'fields:2' isn't a type string"; const error = "The value '1' from 'fields:2' isn't a type string";
expect(res.body).to.be.an("object"); expect(res.body).to.be.an("object");
expect(res.body).to.have.property("message"); expect(res.body).to.have.property("message");
...@@ -214,7 +214,7 @@ describe("API collect controller", () => { ...@@ -214,7 +214,7 @@ describe("API collect controller", () => {
.expect((res: any) => { .expect((res: any) => {
const message = "Query execution failed: " + const message = "Query execution failed: " +
"Could not construct query with the parameters given."; "Could not construct query with the given parameters.";
const error = "The value 'notaboolean' from 'fields:3' isn't a type boolean"; const error = "The value 'notaboolean' from 'fields:3' isn't a type boolean";
expect(res.body).to.be.an("object"); expect(res.body).to.be.an("object");
expect(res.body).to.have.property("message"); expect(res.body).to.have.property("message");
...@@ -233,7 +233,7 @@ describe("API collect controller", () => { ...@@ -233,7 +233,7 @@ describe("API collect controller", () => {
.expect((res: any) => { .expect((res: any) => {
const message = "Query execution failed: " + const message = "Query execution failed: " +
"Could not construct query with the parameters given."; "Could not construct query with the given parameters.";
const error = "The value '1999-25-25' from 'fields:4' isn't a type date"; const error = "The value '1999-25-25' from 'fields:4' isn't a type date";
expect(res.body).to.be.an("object"); expect(res.body).to.be.an("object");
expect(res.body).to.have.property("message"); expect(res.body).to.have.property("message");
......
...@@ -162,7 +162,7 @@ export class CollectCtrl { ...@@ -162,7 +162,7 @@ export class CollectCtrl {
catch (e) { catch (e) {
res.status(500).json({ res.status(500).json({
message: "Query execution failed: " + message: "Query execution failed: " +
"Could not construct query with the parameters given.", "Could not construct query with the given parameters.",
error: e.message error: e.message
}); });
return; return;
......
...@@ -52,7 +52,7 @@ describe("API data controller", () => { ...@@ -52,7 +52,7 @@ describe("API data controller", () => {
.expect(500) .expect(500)
.expect((res: any) => { .expect((res: any) => {
const message = "Query execution failed: " + const message = "Query execution failed: " +
"Could not construct query with the paramters given."; "Could not construct query with the given parameters.";
const error = "The metric named met:-1 was not found"; const error = "The metric named met:-1 was not found";
expect(res.body).to.be.an("object"); expect(res.body).to.be.an("object");
expect(res.body).to.have.property("message"); expect(res.body).to.have.property("message");
...@@ -70,7 +70,7 @@ describe("API data controller", () => { ...@@ -70,7 +70,7 @@ describe("API data controller", () => {
.expect(500) .expect(500)
.expect((res: any) => { .expect((res: any) => {
const message = "Query execution failed: " + const message = "Query execution failed: " +
"Could not construct query with the paramters given."; "Could not construct query with the given parameters.";
const error = "The dimension named dim:-1 was not found"; const error = "The dimension named dim:-1 was not found";
expect(res.body).to.be.an("object"); expect(res.body).to.be.an("object");
expect(res.body).to.have.property("message"); expect(res.body).to.have.property("message");
...@@ -90,7 +90,7 @@ describe("API data controller", () => { ...@@ -90,7 +90,7 @@ describe("API data controller", () => {
.expect(500) .expect(500)
.expect((res: any) => { .expect((res: any) => {
const message = "Query execution failed: " + const message = "Query execution failed: " +
"Could not construct query with the paramters given."; "Could not construct query with the given parameters.";
const error = "The item 'dim:0'" + const error = "The item 'dim:0'" +
" is not present in neither metrics nor dimensions list"; " is not present in neither metrics nor dimensions list";
expect(res.body).to.be.an("object"); expect(res.body).to.be.an("object");
......
...@@ -85,7 +85,7 @@ export class DataCtrl { ...@@ -85,7 +85,7 @@ export class DataCtrl {
catch (e) { catch (e) {
res.status(500).json({ res.status(500).json({
message: "Query execution failed: " + message: "Query execution failed: " +
"Could not construct query with the paramters given.", "Could not construct query with the given parameters.",
error: e.message error: e.message
}); });
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment