Skip to content

Commit

Permalink
chore: update classname
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Jan 19, 2024
1 parent 47dc0f4 commit 49ce958
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions test-app/app/src/main/assets/app/tests/testURLImpl.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
describe("Test URLImpl ", function () {
describe("Test URL ", function () {

it("Test invalid URL parsing", function(){
var exceptionCaught = false;
try {
const url = new URLImpl('');
const url = new URL('');
}catch(e){
exceptionCaught = true;
}
Expand All @@ -13,7 +13,7 @@ var exceptionCaught = false;
it("Test valid URL parsing", function(){
var exceptionCaught = false;
try {
const url = new URLImpl('https://google.com');
const url = new URL('https://google.com');
}catch(e){
exceptionCaught = true;
}
Expand All @@ -23,7 +23,7 @@ var exceptionCaught = false;

it("Test URL fields", function(){
var exceptionCaught = false;
const url = new URLImpl('https://google.com');
const url = new URL('https://google.com');
expect(url.protocol).toBe('https:');
expect(url.hostname).toBe('google.com');
});
Expand Down
30 changes: 15 additions & 15 deletions test-app/app/src/main/assets/app/tests/testURLSearchParamsImpl.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
describe("Test URLSearchParamsImpl ", function () {
describe("Test URLSearchParams ", function () {


it("Test URLSearchParamsImpl keys", function(){
const params = new URLSearchParamsImpl("foo=1&bar=2");
it("Test URLSearchParams keys", function(){
const params = new URLSearchParams("foo=1&bar=2");
const keys = params.keys();
expect(keys[0]).toBe("foo");
expect(keys[1]).toBe("bar");
});

it("Test URLSearchParamsImpl values", function(){
const params = new URLSearchParamsImpl("foo=1&bar=2");
it("Test URLSearchParams values", function(){
const params = new URLSearchParams("foo=1&bar=2");
const values = params.values();
expect(values[0]).toBe("1");
expect(values[1]).toBe("2");
});


it("Test URLSearchParamsImpl entries", function(){
const params = new URLSearchParamsImpl("foo=1&bar=2");
it("Test URLSearchParams entries", function(){
const params = new URLSearchParams("foo=1&bar=2");
const entries = params.entries();
expect(entries[0][0]).toBe("foo");
expect(entries[0][1]).toBe("1");
Expand All @@ -28,28 +28,28 @@ expect(entries[1][1]).toBe("2");
});


it("Test URLSearchParamsImpl size", function(){
const params = new URLSearchParamsImpl("foo=1&bar=2");
it("Test URLSearchParams size", function(){
const params = new URLSearchParams("foo=1&bar=2");
expect(params.size).toBe(2);
});

it("Test URLSearchParamsImpl append", function(){
const params = new URLSearchParamsImpl("foo=1&bar=2");
it("Test URLSearchParams append", function(){
const params = new URLSearchParams("foo=1&bar=2");
params.append("first", "Osei");
expect(params.get("first")).toBe("Osei");
});


it("Test URLSearchParamsImpl delete", function(){
const params = new URLSearchParamsImpl("foo=1&bar=2");
it("Test URLSearchParams delete", function(){
const params = new URLSearchParams("foo=1&bar=2");
params.append("first", "Osei");
params.delete("first");
expect(params.get("first")).toBe(undefined);
});


it("Test URLSearchParamsImpl has", function(){
const params = new URLSearchParamsImpl("foo=1&bar=2");
it("Test URLSearchParams has", function(){
const params = new URLSearchParams("foo=1&bar=2");
expect(params.has("foo")).toBe(true);
});

Expand Down

0 comments on commit 49ce958

Please sign in to comment.