diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-11-21 17:22:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-21 17:22:08 +0300 |
commit | f4457bca0274cbe02422434294e3c6a006da7750 (patch) | |
tree | 33d4d96a0a57a149870688e57be14c13abcae734 /js/tests | |
parent | 358c36d4b59b2beb2ad23244fc44c2464471b680 (diff) |
Be consistent with Popper's name. (#32224)
The npm package is named "popper.js" but the project is named "Popper", so use the latter consistently.
Diffstat (limited to 'js/tests')
-rw-r--r-- | js/tests/unit/dropdown.spec.js | 14 | ||||
-rw-r--r-- | js/tests/unit/tooltip.spec.js | 2 | ||||
-rw-r--r-- | js/tests/visual/dropdown.html | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/js/tests/unit/dropdown.spec.js b/js/tests/unit/dropdown.spec.js index b1a99e7e6b..f5f41636cd 100644 --- a/js/tests/unit/dropdown.spec.js +++ b/js/tests/unit/dropdown.spec.js @@ -100,7 +100,7 @@ describe('Dropdown', () => { expect(dropdown.toggle).toHaveBeenCalled() }) - it('should allow to pass config to popper.js with `popperConfig`', () => { + it('should allow to pass config to Popper with `popperConfig`', () => { fixtureEl.innerHTML = [ '<div class="dropdown">', ' <button class="btn dropdown-toggle" data-bs-toggle="dropdown">Dropdown</button>', @@ -841,7 +841,7 @@ describe('Dropdown', () => { expect(dropdown._element).toBeNull() }) - it('should dispose dropdown with popper.js', () => { + it('should dispose dropdown with Popper', () => { fixtureEl.innerHTML = [ '<div class="dropdown">', ' <button class="btn dropdown-toggle" data-bs-toggle="dropdown">Dropdown</button>', @@ -872,7 +872,7 @@ describe('Dropdown', () => { }) describe('update', () => { - it('should call popper.js and detect navbar on update', () => { + it('should call Popper and detect navbar on update', () => { fixtureEl.innerHTML = [ '<div class="dropdown">', ' <button class="btn dropdown-toggle" data-bs-toggle="dropdown">Dropdown</button>', @@ -1005,7 +1005,7 @@ describe('Dropdown', () => { btnDropdown.click() }) - it('should not use popper.js in navbar', done => { + it('should not use Popper in navbar', done => { fixtureEl.innerHTML = [ '<nav class="navbar navbar-expand-md navbar-light bg-light">', ' <div class="dropdown">', @@ -1022,14 +1022,14 @@ describe('Dropdown', () => { const dropdownMenu = fixtureEl.querySelector('.dropdown-menu') dropdownEl.addEventListener('shown.bs.dropdown', () => { - expect(dropdownMenu.getAttribute('style')).toEqual(null, 'no inline style applied by popper.js') + expect(dropdownMenu.getAttribute('style')).toEqual(null, 'no inline style applied by Popper') done() }) btnDropdown.click() }) - it('should not use popper.js if display set to static', done => { + it('should not use Popper if display set to static', done => { fixtureEl.innerHTML = [ '<div class="dropdown">', ' <button class="btn dropdown-toggle" data-bs-toggle="dropdown" data-bs-display="static">Dropdown</button>', @@ -1044,7 +1044,7 @@ describe('Dropdown', () => { const dropdownMenu = fixtureEl.querySelector('.dropdown-menu') dropdownEl.addEventListener('shown.bs.dropdown', () => { - // popper.js add this attribute when we use it + // Popper adds this attribute when we use it expect(dropdownMenu.getAttribute('x-placement')).toEqual(null) done() }) diff --git a/js/tests/unit/tooltip.spec.js b/js/tests/unit/tooltip.spec.js index c6d91b4028..c781f587a1 100644 --- a/js/tests/unit/tooltip.spec.js +++ b/js/tests/unit/tooltip.spec.js @@ -107,7 +107,7 @@ describe('Tooltip', () => { tooltipInContainerEl.click() }) - it('should allow to pass config to popper.js with `popperConfig`', () => { + it('should allow to pass config to Popper with `popperConfig`', () => { fixtureEl.innerHTML = '<a href="#" rel="tooltip">' const tooltipEl = fixtureEl.querySelector('a') diff --git a/js/tests/visual/dropdown.html b/js/tests/visual/dropdown.html index 5dc757197c..9dad43543e 100644 --- a/js/tests/visual/dropdown.html +++ b/js/tests/visual/dropdown.html @@ -196,7 +196,7 @@ <div class="col-sm-3 mt-4"> <div class="dropdown"> <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown" data-bs-display="static" aria-expanded="false"> - Dropdown menu without Popper.js + Dropdown menu without Popper </button> <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton"> <li><a class="dropdown-item" href="#">Action</a></li> |