summaryrefslogtreecommitdiff
path: root/spec/javascripts/repo/stores/mutations/branch_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascripts/repo/stores/mutations/branch_spec.js')
-rw-r--r--spec/javascripts/repo/stores/mutations/branch_spec.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/javascripts/repo/stores/mutations/branch_spec.js b/spec/javascripts/repo/stores/mutations/branch_spec.js
new file mode 100644
index 00000000000..3c06794d5e3
--- /dev/null
+++ b/spec/javascripts/repo/stores/mutations/branch_spec.js
@@ -0,0 +1,18 @@
+import mutations from '~/repo/stores/mutations/branch';
+import state from '~/repo/stores/state';
+
+describe('Multi-file store branch mutations', () => {
+ let localState;
+
+ beforeEach(() => {
+ localState = state();
+ });
+
+ describe('SET_CURRENT_BRANCH', () => {
+ it('sets currentBranch', () => {
+ mutations.SET_CURRENT_BRANCH(localState, 'master');
+
+ expect(localState.currentBranch).toBe('master');
+ });
+ });
+});