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
e993bcdb
Commit
e993bcdb
authored
Nov 16, 2021
by
Denys Mishunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor refactoring as per review
parent
3dddf175
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
spec/frontend/editor/source_editor_instance_spec.js
spec/frontend/editor/source_editor_instance_spec.js
+5
-4
No files found.
spec/frontend/editor/source_editor_instance_spec.js
View file @
e993bcdb
...
...
@@ -308,10 +308,11 @@ describe('Source Editor Instance', () => {
const
extensions
=
seInstance
.
use
(
fullExtensionsArray
);
const
verifyExpectations
=
()
=>
{
const
entries
=
extensionStore
.
entries
();
expect
(
extensionStore
.
size
).
toBe
(
3
);
expect
(
entries
.
next
().
value
).
toEqual
([
'
MyClassExtension
'
,
extensions
[
0
]]);
expect
(
entries
.
next
().
value
).
toEqual
([
'
MyFnExtension
'
,
extensions
[
1
]]);
expect
(
entries
.
next
().
value
).
toEqual
([
'
MyConstExt
'
,
extensions
[
2
]]);
const
mockExtensions
=
[
'
MyClassExtension
'
,
'
MyFnExtension
'
,
'
MyConstExt
'
];
expect
(
extensionStore
.
size
).
toBe
(
mockExtensions
.
length
);
mockExtensions
.
forEach
((
ext
,
index
)
=>
{
expect
(
entries
.
next
().
value
).
toEqual
([
ext
,
extensions
[
index
]]);
});
};
verifyExpectations
();
...
...
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