Commit 99f2e9a1 authored by Mike Greiling's avatar Mike Greiling

use setFixtures instead of fixture.set

parent 85f2dcf5
//= require vue //= require vue
//= require lib/utils/common_utils //= require lib/utils/common_utils
//= require vue_pagination/index //= require vue_pagination/index
/* global fixture, gl */
describe('Pagination component', () => { describe('Pagination component', () => {
let component; let component;
...@@ -17,7 +16,7 @@ describe('Pagination component', () => { ...@@ -17,7 +16,7 @@ describe('Pagination component', () => {
}; };
it('should render and start at page 1', () => { it('should render and start at page 1', () => {
fixture.set('<div class="test-pagination-container"></div>'); setFixtures('<div class="test-pagination-container"></div>');
component = new window.gl.VueGlPagination({ component = new window.gl.VueGlPagination({
el: document.querySelector('.test-pagination-container'), el: document.querySelector('.test-pagination-container'),
...@@ -40,7 +39,7 @@ describe('Pagination component', () => { ...@@ -40,7 +39,7 @@ describe('Pagination component', () => {
}); });
it('should go to the previous page', () => { it('should go to the previous page', () => {
fixture.set('<div class="test-pagination-container"></div>'); setFixtures('<div class="test-pagination-container"></div>');
component = new window.gl.VueGlPagination({ component = new window.gl.VueGlPagination({
el: document.querySelector('.test-pagination-container'), el: document.querySelector('.test-pagination-container'),
...@@ -61,7 +60,7 @@ describe('Pagination component', () => { ...@@ -61,7 +60,7 @@ describe('Pagination component', () => {
}); });
it('should go to the next page', () => { it('should go to the next page', () => {
fixture.set('<div class="test-pagination-container"></div>'); setFixtures('<div class="test-pagination-container"></div>');
component = new window.gl.VueGlPagination({ component = new window.gl.VueGlPagination({
el: document.querySelector('.test-pagination-container'), el: document.querySelector('.test-pagination-container'),
...@@ -82,7 +81,7 @@ describe('Pagination component', () => { ...@@ -82,7 +81,7 @@ describe('Pagination component', () => {
}); });
it('should go to the last page', () => { it('should go to the last page', () => {
fixture.set('<div class="test-pagination-container"></div>'); setFixtures('<div class="test-pagination-container"></div>');
component = new window.gl.VueGlPagination({ component = new window.gl.VueGlPagination({
el: document.querySelector('.test-pagination-container'), el: document.querySelector('.test-pagination-container'),
...@@ -103,7 +102,7 @@ describe('Pagination component', () => { ...@@ -103,7 +102,7 @@ describe('Pagination component', () => {
}); });
it('should go to the first page', () => { it('should go to the first page', () => {
fixture.set('<div class="test-pagination-container"></div>'); setFixtures('<div class="test-pagination-container"></div>');
component = new window.gl.VueGlPagination({ component = new window.gl.VueGlPagination({
el: document.querySelector('.test-pagination-container'), el: document.querySelector('.test-pagination-container'),
...@@ -124,7 +123,7 @@ describe('Pagination component', () => { ...@@ -124,7 +123,7 @@ describe('Pagination component', () => {
}); });
it('should do nothing', () => { it('should do nothing', () => {
fixture.set('<div class="test-pagination-container"></div>'); setFixtures('<div class="test-pagination-container"></div>');
component = new window.gl.VueGlPagination({ component = new window.gl.VueGlPagination({
el: document.querySelector('.test-pagination-container'), el: document.querySelector('.test-pagination-container'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment