-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged upstream master branch to resolve conflicts
- Loading branch information
Showing
10 changed files
with
58 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Wegue <small>1.1.0</small> | ||
# Wegue <small>1.2.0</small> | ||
|
||
> Simple Webmapping with OpenLayers and Vue.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "wegue", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Template project for a WebGIS client with OpenLayers and Vue.js", | ||
"author": "Christian Mayer <[email protected]>", | ||
"contributors": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import AppSidebar from 'APP/components/AppSidebar'; | ||
import { WguEventBus } from '@/WguEventBus'; | ||
import { shallowMount } from '@vue/test-utils'; | ||
|
||
describe('AppSidebar.vue', () => { | ||
describe('data', () => { | ||
let comp; | ||
let vm; | ||
beforeEach(() => { | ||
comp = shallowMount(AppSidebar); | ||
vm = comp.vm; | ||
}); | ||
|
||
it('has correct default data', () => { | ||
expect(vm.sidebarOpen).to.equal(true); | ||
}); | ||
}); | ||
|
||
describe('events', () => { | ||
let comp; | ||
let vm; | ||
beforeEach(() => { | ||
comp = shallowMount(AppSidebar); | ||
vm = comp.vm; | ||
}); | ||
|
||
it('event "sidebar-toggle" forces correct open state', () => { | ||
// force closing sidebar by adding 'false' parameter | ||
WguEventBus.$emit('sidebar-toggle', false); | ||
expect(vm.sidebarOpen).to.equal(false); | ||
// toggle sidebar open state by skipping parameter | ||
WguEventBus.$emit('sidebar-toggle'); | ||
expect(vm.sidebarOpen).to.equal(true); | ||
}); | ||
}); | ||
}); |