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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
8be80a59
Commit
8be80a59
authored
May 08, 2020
by
Himanshu Kapoor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate notebook specs to Jest
Migrate specs in spec/javascripts/notebook to Jest
parent
a11d61d1
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
14 deletions
+14
-14
spec/frontend/notebook/cells/code_spec.js
spec/frontend/notebook/cells/code_spec.js
+3
-3
spec/frontend/notebook/cells/markdown_spec.js
spec/frontend/notebook/cells/markdown_spec.js
+1
-1
spec/frontend/notebook/cells/output/html_sanitize_tests.js
spec/frontend/notebook/cells/output/html_sanitize_tests.js
+0
-0
spec/frontend/notebook/cells/output/html_spec.js
spec/frontend/notebook/cells/output/html_spec.js
+0
-0
spec/frontend/notebook/cells/output/index_spec.js
spec/frontend/notebook/cells/output/index_spec.js
+5
-5
spec/frontend/notebook/cells/prompt_spec.js
spec/frontend/notebook/cells/prompt_spec.js
+2
-2
spec/frontend/notebook/index_spec.js
spec/frontend/notebook/index_spec.js
+3
-3
No files found.
spec/
javascripts
/notebook/cells/code_spec.js
→
spec/
frontend
/notebook/cells/code_spec.js
View file @
8be80a59
...
@@ -25,7 +25,7 @@ describe('Code component', () => {
...
@@ -25,7 +25,7 @@ describe('Code component', () => {
beforeEach
(
done
=>
{
beforeEach
(
done
=>
{
vm
=
setupComponent
(
json
.
cells
[
0
]);
vm
=
setupComponent
(
json
.
cells
[
0
]);
set
Timeout
(()
=>
{
set
Immediate
(()
=>
{
done
();
done
();
});
});
});
});
...
@@ -39,7 +39,7 @@ describe('Code component', () => {
...
@@ -39,7 +39,7 @@ describe('Code component', () => {
beforeEach
(
done
=>
{
beforeEach
(
done
=>
{
vm
=
setupComponent
(
json
.
cells
[
2
]);
vm
=
setupComponent
(
json
.
cells
[
2
]);
set
Timeout
(()
=>
{
set
Immediate
(()
=>
{
done
();
done
();
});
});
});
});
...
@@ -60,7 +60,7 @@ describe('Code component', () => {
...
@@ -60,7 +60,7 @@ describe('Code component', () => {
vm
=
setupComponent
(
cell
);
vm
=
setupComponent
(
cell
);
set
Timeout
(()
=>
{
set
Immediate
(()
=>
{
done
();
done
();
});
});
});
});
...
...
spec/
javascripts
/notebook/cells/markdown_spec.js
→
spec/
frontend
/notebook/cells/markdown_spec.js
View file @
8be80a59
...
@@ -24,7 +24,7 @@ describe('Markdown component', () => {
...
@@ -24,7 +24,7 @@ describe('Markdown component', () => {
});
});
vm
.
$mount
();
vm
.
$mount
();
set
Timeout
(()
=>
{
set
Immediate
(()
=>
{
done
();
done
();
});
});
});
});
...
...
spec/
javascripts
/notebook/cells/output/html_sanitize_tests.js
→
spec/
frontend
/notebook/cells/output/html_sanitize_tests.js
View file @
8be80a59
File moved
spec/
javascripts
/notebook/cells/output/html_spec.js
→
spec/
frontend
/notebook/cells/output/html_spec.js
View file @
8be80a59
File moved
spec/
javascripts
/notebook/cells/output/index_spec.js
→
spec/
frontend
/notebook/cells/output/index_spec.js
View file @
8be80a59
...
@@ -25,7 +25,7 @@ describe('Output component', () => {
...
@@ -25,7 +25,7 @@ describe('Output component', () => {
beforeEach
(
done
=>
{
beforeEach
(
done
=>
{
createComponent
(
json
.
cells
[
2
].
outputs
[
0
]);
createComponent
(
json
.
cells
[
2
].
outputs
[
0
]);
set
Timeout
(()
=>
{
set
Immediate
(()
=>
{
done
();
done
();
});
});
});
});
...
@@ -43,7 +43,7 @@ describe('Output component', () => {
...
@@ -43,7 +43,7 @@ describe('Output component', () => {
beforeEach
(
done
=>
{
beforeEach
(
done
=>
{
createComponent
(
json
.
cells
[
3
].
outputs
[
0
]);
createComponent
(
json
.
cells
[
3
].
outputs
[
0
]);
set
Timeout
(()
=>
{
set
Immediate
(()
=>
{
done
();
done
();
});
});
});
});
...
@@ -73,7 +73,7 @@ describe('Output component', () => {
...
@@ -73,7 +73,7 @@ describe('Output component', () => {
beforeEach
(
done
=>
{
beforeEach
(
done
=>
{
createComponent
(
json
.
cells
[
5
].
outputs
[
0
]);
createComponent
(
json
.
cells
[
5
].
outputs
[
0
]);
set
Timeout
(()
=>
{
set
Immediate
(()
=>
{
done
();
done
();
});
});
});
});
...
@@ -87,7 +87,7 @@ describe('Output component', () => {
...
@@ -87,7 +87,7 @@ describe('Output component', () => {
beforeEach
(
done
=>
{
beforeEach
(
done
=>
{
createComponent
(
json
.
cells
[
6
].
outputs
[
0
]);
createComponent
(
json
.
cells
[
6
].
outputs
[
0
]);
set
Timeout
(()
=>
{
set
Immediate
(()
=>
{
done
();
done
();
});
});
});
});
...
@@ -104,7 +104,7 @@ describe('Output component', () => {
...
@@ -104,7 +104,7 @@ describe('Output component', () => {
it
(
"
renders as plain text when doesn't recognise other types
"
,
done
=>
{
it
(
"
renders as plain text when doesn't recognise other types
"
,
done
=>
{
createComponent
(
json
.
cells
[
7
].
outputs
[
0
]);
createComponent
(
json
.
cells
[
7
].
outputs
[
0
]);
set
Timeout
(()
=>
{
set
Immediate
(()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
pre
'
)).
not
.
toBeNull
();
expect
(
vm
.
$el
.
querySelector
(
'
pre
'
)).
not
.
toBeNull
();
expect
(
vm
.
$el
.
textContent
.
trim
()).
toContain
(
'
testing
'
);
expect
(
vm
.
$el
.
textContent
.
trim
()).
toContain
(
'
testing
'
);
...
...
spec/
javascripts
/notebook/cells/prompt_spec.js
→
spec/
frontend
/notebook/cells/prompt_spec.js
View file @
8be80a59
...
@@ -16,7 +16,7 @@ describe('Prompt component', () => {
...
@@ -16,7 +16,7 @@ describe('Prompt component', () => {
});
});
vm
.
$mount
();
vm
.
$mount
();
set
Timeout
(()
=>
{
set
Immediate
(()
=>
{
done
();
done
();
});
});
});
});
...
@@ -40,7 +40,7 @@ describe('Prompt component', () => {
...
@@ -40,7 +40,7 @@ describe('Prompt component', () => {
});
});
vm
.
$mount
();
vm
.
$mount
();
set
Timeout
(()
=>
{
set
Immediate
(()
=>
{
done
();
done
();
});
});
});
});
...
...
spec/
javascripts
/notebook/index_spec.js
→
spec/
frontend
/notebook/index_spec.js
View file @
8be80a59
...
@@ -22,7 +22,7 @@ describe('Notebook component', () => {
...
@@ -22,7 +22,7 @@ describe('Notebook component', () => {
});
});
vm
.
$mount
();
vm
.
$mount
();
set
Timeout
(()
=>
{
set
Immediate
(()
=>
{
done
();
done
();
});
});
});
});
...
@@ -42,7 +42,7 @@ describe('Notebook component', () => {
...
@@ -42,7 +42,7 @@ describe('Notebook component', () => {
});
});
vm
.
$mount
();
vm
.
$mount
();
set
Timeout
(()
=>
{
set
Immediate
(()
=>
{
done
();
done
();
});
});
});
});
...
@@ -74,7 +74,7 @@ describe('Notebook component', () => {
...
@@ -74,7 +74,7 @@ describe('Notebook component', () => {
});
});
vm
.
$mount
();
vm
.
$mount
();
set
Timeout
(()
=>
{
set
Immediate
(()
=>
{
done
();
done
();
});
});
});
});
...
...
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