Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jackocnr committed Dec 7, 2024
1 parent ad6c5f5 commit bb53a52
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion src/spec/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ module.exports = {
"getListElement": true,
"getListLength": true,
"getActiveListItem": true,
"getPreferredCountriesLength": true,
"getSelectedCountryContainer": true,
"getSelectedCountryElement": true,
"getSelectedDialCodeElement": true,
Expand Down
5 changes: 0 additions & 5 deletions src/spec/helpers/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ var getActiveListItem = function(i) {
return getListElement(i).find("li.iti__active");
};

var getPreferredCountriesLength = function(i) {
i = i || input;
return getListElement(i).find("li.iti__preferred").length;
};

var getSelectedCountryContainer = function(i) {
i = i || input;
return i.parent().find(".iti__selected-country");
Expand Down
1 change: 0 additions & 1 deletion src/spec/tests/options/excludeCountries.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ describe("excludeCountries option:", function() {
beforeEach(function() {
iti = window.intlTelInput(input[0], {
excludeCountries: excludeCountries,
preferredCountries: [],
});
});

Expand Down
3 changes: 1 addition & 2 deletions src/spec/tests/options/onlyCountries.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("onlyCountries option:", function() {
describe("init plugin with onlyCountries set to japan, china and korea", function() {

beforeEach(function() {
//* China and Japan (note that none of the default preferredCountries are included here, so wont be in the list).
//* China and Japan.
onlyCountries = ["jp", "cn", "kr"];
iti = window.intlTelInput(input[0], {
onlyCountries: onlyCountries,
Expand All @@ -36,7 +36,6 @@ describe("onlyCountries option:", function() {

beforeEach(function() {
iti = window.intlTelInput(input[0], {
preferredCountries: [],
onlyCountries: ["af", "kz", "ru"],
});
});
Expand Down

0 comments on commit bb53a52

Please sign in to comment.