Skip to content

Commit

Permalink
Updated automated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyomZorin committed Jul 29, 2022
1 parent 939a458 commit 1aa06fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
gnome-shell-extension-zorin-connect (53.2) focal; urgency=medium

* Updated automated tests

-- Artyom Zorin <[email protected]> Fri, 29 Jul 2022 23:57:05 +0100

gnome-shell-extension-zorin-connect (53.1) focal; urgency=medium

* Set battery send-statistics and clipboard receive-content on by
Expand Down
6 changes: 0 additions & 6 deletions installed-tests/suites/plugins/testBatteryPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,6 @@ describe('The battery plugin', function () {
});

describe('sends local statistics', function () {
it('when enabled', async function () {
localPlugin.settings.set_boolean('send-statistics', true);

await remotePlugin.awaitPacket('kdeconnect.battery');
});

it('when they change', async function () {
localPlugin._upower.update({
charging: true,
Expand Down
14 changes: 7 additions & 7 deletions installed-tests/suites/plugins/testClipboardPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@ describe('The clipboard plugin', function () {
expect(remotePlugin._remoteBuffer).toBe('bar');
});

it('will not pull content when not allowed', async function () {
localPlugin._clipboard.text = 'baz';
it('will pull content when allowed', async function () {
localPlugin._clipboard.text = 'qux';

await remotePlugin.awaitPacket('kdeconnect.clipboard');
expect(remotePlugin._clipboard.text).not.toBe('baz');
expect(remotePlugin._clipboard.text).toBe('qux');
});

it('will pull content when allowed', async function () {
remotePlugin.settings.set_boolean('receive-content', true);
localPlugin._clipboard.text = 'qux';
it('will not pull content when not allowed', async function () {
remotePlugin.settings.set_boolean('receive-content', false);
localPlugin._clipboard.text = 'baz';

await remotePlugin.awaitPacket('kdeconnect.clipboard');
expect(remotePlugin._clipboard.text).toBe('qux');
expect(remotePlugin._clipboard.text).not.toBe('baz');
});

it('disables its GActions when disconnected', function () {
Expand Down

0 comments on commit 1aa06fb

Please sign in to comment.