Skip to content

Commit

Permalink
lint mobian RTD provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ehb-mtk committed Aug 14, 2024
1 parent d04a344 commit a494eea
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/spec/modules/mobianRtdProvider_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ describe('Mobian RTD Submodule', function () {
ajaxStub = sinon.stub(ajax, 'ajaxBuilder').returns(function(url, callbacks) {
callbacks.success(JSON.stringify({
meta: {
url: "https://example.com",
url: 'https://example.com',
has_results: true
},
results: {
mobianRisk: "low",
mobianSentiment: "positive",
mobianRisk: 'low',
mobianSentiment: 'positive',
mobianContentCategories: [],
mobianEmotions: ["joy"]
mobianEmotions: ['joy']
}
}));
});
Expand All @@ -61,14 +61,14 @@ describe('Mobian RTD Submodule', function () {
ajaxStub = sinon.stub(ajax, 'ajaxBuilder').returns(function(url, callbacks) {
callbacks.success(JSON.stringify({
meta: {
url: "https://example.com",
url: 'https://example.com',
has_results: true
},
results: {
mobianRisk: "medium",
mobianSentiment: "negative",
mobianContentCategories: ["arms", "crime"],
mobianEmotions: ["anger", "fear"]
mobianRisk: 'medium',
mobianSentiment: 'negative',
mobianContentCategories: ['arms', 'crime'],
mobianEmotions: ['anger', 'fear']
}
}));
});
Expand All @@ -93,7 +93,7 @@ describe('Mobian RTD Submodule', function () {
ajaxStub = sinon.stub(ajax, 'ajaxBuilder').returns(function(url, callbacks) {
callbacks.success(JSON.stringify({
meta: {
url: "https://example.com",
url: 'https://example.com',
has_results: false
},
results: {}
Expand Down Expand Up @@ -134,11 +134,11 @@ describe('Mobian RTD Submodule', function () {
ajaxStub = sinon.stub(ajax, 'ajaxBuilder').returns(function(url, callbacks) {
callbacks.success(JSON.stringify({
meta: {
url: "https://example.com",
url: 'https://example.com',
has_results: true
},
results: {
mobianRisk: "high"
mobianRisk: 'high'
// Missing other fields
}
}));
Expand Down

0 comments on commit a494eea

Please sign in to comment.