Skip to content

Commit

Permalink
fixed styling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vickyc2266 committed Nov 16, 2024
1 parent 40cb060 commit 9acb080
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
4 changes: 2 additions & 2 deletions test/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ describe('API', async () => {
// Compare the schema to the response
required.forEach((prop) => {
if (schema.hasOwnProperty(prop)) {
if (prop === "translatedContent" && !response.hasOwnProperty(prop)) {
if (prop === 'translatedContent' && !response.hasOwnProperty(prop)) {
// Skip checking "translatedContent" if it’s not in the response
return;
}
Expand Down Expand Up @@ -666,7 +666,7 @@ describe('API', async () => {
// Compare the response to the schema
Object.keys(response).forEach((prop) => {
const additionalProperties = true;
if (additionalProperties || prop === "isEnglish" || prop === "translatedContent") { // All bets are off
if (additionalProperties || prop === 'isEnglish' || prop === 'translatedContent') { // All bets are off
return;
}

Expand Down
16 changes: 0 additions & 16 deletions test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,22 +279,6 @@ describe('Utility Methods', () => {
done();
});

// it('should return false if browser is not android', (done) => {
// global.navigator = {
// userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36',
// };
// assert.equal(utils.isAndroidBrowser(), false);
// done();
// });

// it('should return true if browser is android', (done) => {
// global.navigator = {
// userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Android /58.0.3029.96 Safari/537.36',
// };
// assert.equal(utils.isAndroidBrowser(), true);
// done();
// });

it('should check if element is in viewport', (done) => {
const el = $('<div>some text</div>');
assert(utils.isElementInViewport(el));
Expand Down

0 comments on commit 9acb080

Please sign in to comment.