-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove get method from clipboardStore, Use default type when pasting …
…unknown block
- Loading branch information
1 parent
5bcc782
commit b48b059
Showing
10 changed files
with
44 additions
and
41 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
4 changes: 0 additions & 4 deletions
4
src/Sulu/Bundle/AdminBundle/Resources/js/stores/clipboardStore/index.js
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/Sulu/Bundle/AdminBundle/Resources/js/stores/clipboardStore/tests/clipboardStore.test.js
This file was deleted.
Oops, something went wrong.
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
4 changes: 4 additions & 0 deletions
4
src/Sulu/Bundle/AdminBundle/Resources/js/utils/clipboard/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// @flow | ||
import clipboard from './clipboard'; | ||
|
||
export default clipboard; |
11 changes: 11 additions & 0 deletions
11
src/Sulu/Bundle/AdminBundle/Resources/js/utils/clipboard/tests/clipboard.test.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// @flow | ||
import clipboard from '../clipboard'; | ||
|
||
test('Set item to localStorage', () => { | ||
const setItemSpy = jest.fn(); | ||
window.localStorage = {getItem: setItemSpy}; | ||
|
||
const item = {key1: 'value1', key2: 1234}; | ||
clipboard.set('test-key', item); | ||
expect(setItemSpy).toBeCalledWith(item); | ||
}); |
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
src/Sulu/Bundle/AdminBundle/Resources/translations/admin.de.json
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