Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
99f2e9a1
Commit
99f2e9a1
authored
Feb 02, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use setFixtures instead of fixture.set
parent
85f2dcf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
spec/javascripts/vue_pagination/pagination_spec.js.es6
spec/javascripts/vue_pagination/pagination_spec.js.es6
+6
-7
No files found.
spec/javascripts/vue_pagination/pagination_spec.js.es6
View file @
99f2e9a1
//= 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'),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment