Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
"use strict";
2
 
3
describe("setCountry: init plugin and calling public method setCountry()", function() {
4
 
5
  var countryCode = "gb";
6
 
7
  beforeEach(function() {
8
    intlSetup();
9
    input = $("<input>").wrap("div");
10
    iti = window.intlTelInput(input[0]);
11
    iti.setCountry(countryCode);
12
  });
13
 
14
  afterEach(function() {
15
    intlTeardown();
16
  });
17
 
18
  it("updates the selected flag", function() {
19
    expect(getSelectedFlagElement()).toHaveClass(`iti__${countryCode}`);
20
  });
21
 
22
  it("does not insert the dial code", function() {
23
    expect(getInputVal()).toEqual("");
24
  });
25
 
26
});