mirror of
https://github.com/status-im/consul.git
synced 2025-01-13 15:26:48 +00:00
a44541a91f
1. Remove ember-cli-clipboard dependency 2. Provide a new copy-button component implementing the same interface as ^ but make the clipboard functionality injectable 3. Provide 2 implementations of a Clipboard. One using clipboard.js (as previously) and an additional local storage 'clipboard'. 4. add a BDD step to assert whats in the clipboard (the fake one) Main reason here is that `document.exec` must be called by a user interaction
13 lines
367 B
JavaScript
13 lines
367 B
JavaScript
import { moduleFor, test } from 'ember-qunit';
|
|
|
|
moduleFor('service:clipboard/local-storage', 'Unit | Service | clipboard/local storage', {
|
|
// Specify the other units that are required for this test.
|
|
// needs: ['service:foo']
|
|
});
|
|
|
|
// Replace this with your real tests.
|
|
test('it exists', function(assert) {
|
|
let service = this.subject();
|
|
assert.ok(service);
|
|
});
|