@webex/internal-plugin-conversation 3.0.0-beta.42 → 3.0.0-beta.421
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants.js +1 -8
- package/dist/constants.js.map +1 -1
- package/dist/conversation.js +49 -41
- package/dist/conversation.js.map +1 -1
- package/dist/encryption-transforms.js +7 -2
- package/dist/encryption-transforms.js.map +1 -1
- package/dist/share-activity.js +2 -2
- package/dist/share-activity.js.map +1 -1
- package/package.json +15 -15
- package/src/constants.js +0 -5
- package/src/conversation.js +26 -30
- package/src/encryption-transforms.js +8 -0
- package/src/share-activity.js +1 -1
- package/test/integration/spec/create.js +2 -3
- package/test/integration/spec/encryption.js +0 -1
- package/test/integration/spec/get.js +4 -2
- package/test/unit/spec/conversation.js +81 -5
- package/test/unit/spec/encryption-transforms.js +23 -0
|
@@ -36,6 +36,29 @@ describe('plugin-conversation', () => {
|
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
+
it('does not transform when object type is "policies" for a "meetingContainer" activity', async () => {
|
|
40
|
+
const transform = transforms.find((t) => t.name === 'encryptActivity');
|
|
41
|
+
const transformStub = sinon.stub().resolves();
|
|
42
|
+
|
|
43
|
+
const ctx = {
|
|
44
|
+
transform: transformStub,
|
|
45
|
+
};
|
|
46
|
+
const key = null;
|
|
47
|
+
const activity = {
|
|
48
|
+
object: {
|
|
49
|
+
objectType: 'policies',
|
|
50
|
+
},
|
|
51
|
+
objectType: 'activity',
|
|
52
|
+
target: {
|
|
53
|
+
objectType: 'meetingContainer',
|
|
54
|
+
},
|
|
55
|
+
verb: 'update',
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const results = await transform.fn(ctx, key, activity);
|
|
59
|
+
assert.equal(results, undefined);
|
|
60
|
+
});
|
|
61
|
+
|
|
39
62
|
it('does transfom when created is not True', async () => {
|
|
40
63
|
const transform = transforms.find((t) => t.name === 'encryptActivity');
|
|
41
64
|
const transformStub = sinon.stub().resolves();
|