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
45d80508
Commit
45d80508
authored
Feb 27, 2020
by
Jackie Fraser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate blob_bundle spec from Karma to Jest
parent
3e2aec80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
spec/frontend/blob_edit/blob_bundle_spec.js
spec/frontend/blob_edit/blob_bundle_spec.js
+2
-1
No files found.
spec/
javascripts
/blob_edit/blob_bundle_spec.js
→
spec/
frontend
/blob_edit/blob_bundle_spec.js
View file @
45d80508
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
blobBundle
from
'
~/blob_edit/blob_bundle
'
;
import
blobBundle
from
'
~/blob_edit/blob_bundle
'
;
jest
.
mock
(
'
~/blob_edit/edit_blob
'
);
describe
(
'
BlobBundle
'
,
()
=>
{
describe
(
'
BlobBundle
'
,
()
=>
{
beforeEach
(()
=>
{
beforeEach
(()
=>
{
spyOnDependency
(
blobBundle
,
'
EditBlob
'
).
and
.
stub
();
setFixtures
(
`
setFixtures
(
`
<div class="js-edit-blob-form" data-blob-filename="blah">
<div class="js-edit-blob-form" data-blob-filename="blah">
<button class="js-commit-button"></button>
<button class="js-commit-button"></button>
...
...
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