Skip to content

Commit

Permalink
chore: cleanup membrane-symbols.spec comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Apr 27, 2022
1 parent c072aa9 commit bd77719
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions test/membrane/membrane-symbols.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ describe('@@lockerNearMembrane', () => {
},
takeOutside(insideValue) {
// Test blue proxies.
// To unlock the near-membrane symbol gate first perform a has()
// trap check.
// To unlock the near-membrane symbol flag first perform a
// has() trap check.
expect(LOCKER_NEAR_MEMBRANE_SYMBOL in insideValue).toBe(false);
// Next, perform a get() trap call.
expect(insideValue[LOCKER_NEAR_MEMBRANE_SYMBOL]).toBe(true);
// Performing a get() trap call without first performing a has()
// trap check will produce `undefined`.
// Performing a get() trap call without first performing a
// has() trap check will produce `undefined`.
expect(insideValue[LOCKER_NEAR_MEMBRANE_SYMBOL]).toBe(undefined);
},
}),
Expand Down Expand Up @@ -149,13 +149,13 @@ describe('@@lockerNearMembrane', () => {
},
takeOutside(insideValue) {
// Test blue proxies.
// To unlock the near-membrane symbol gate first perform a has()
// trap check.
// To unlock the near-membrane symbol flag first perform a
// has() trap check.
expect(LOCKER_NEAR_MEMBRANE_SYMBOL in insideValue).toBe(false);
// Next, perform a get() trap call.
expect(insideValue[LOCKER_NEAR_MEMBRANE_SYMBOL]).toBe(true);
// Performing a get() trap call without first performing a has()
// trap check will produce `undefined`.
// Performing a get() trap call without first performing a
// has() trap check will produce `undefined`.
expect(insideValue[LOCKER_NEAR_MEMBRANE_SYMBOL]).toBe(undefined);
},
}),
Expand Down Expand Up @@ -206,15 +206,15 @@ describe('@@lockerNearMembraneSerializedValue', () => {
},
takeOutside(insideValue, expectedSerialized) {
// Test blue proxies.
// To unlock the near-membrane symbol gate first perform a has()
// trap check.
// To unlock the near-membrane symbol flag first perform a
// has() trap check.
expect(LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL in insideValue).toBe(false);
// Next, perform a get() trap call.
expect(insideValue[LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL]).toBe(
expectedSerialized
);
// Performing a get() trap call without first performing a has()
// trap check will produce `undefined`.
// Performing a get() trap call without first performing a
// has() trap check will produce `undefined`.
expect(insideValue[LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL]).toBe(
undefined
);
Expand Down Expand Up @@ -335,15 +335,15 @@ describe('@@lockerNearMembraneSerializedValue', () => {
},
takeOutside(insideValue, expectedSerialized) {
// Test blue proxies.
// To unlock the near-membrane symbol gate first perform a has()
// trap check.
// To unlock the near-membrane symbol flag first perform a
// has() trap check.
expect(LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL in insideValue).toBe(false);
// Next, perform a get() trap call.
expect(insideValue[LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL]).toBe(
expectedSerialized
);
// Performing a get() trap call without first performing a has()
// trap check will produce `undefined`.
// Performing a get() trap call without first performing a
// has() trap check will produce `undefined`.
expect(insideValue[LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL]).toBe(
undefined
);
Expand Down Expand Up @@ -394,15 +394,15 @@ describe('@@lockerNearMembraneSerializedValue', () => {
},
takeOutside(insideValue, expectedSerialized) {
// Test blue proxies.
// To unlock the near-membrane symbol gate first perform a has()
// trap check.
// To unlock the near-membrane symbol flag first perform a
// has() trap check.
expect(LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL in insideValue).toBe(false);
// Next, perform a get() trap call.
expect(insideValue[LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL]).toBe(
expectedSerialized
);
// Performing a get() trap call without first performing a has()
// trap check will produce `undefined`.
// Performing a get() trap call without first performing a
// has() trap check will produce `undefined`.
expect(insideValue[LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL]).toBe(
undefined
);
Expand Down Expand Up @@ -495,15 +495,15 @@ describe('@@lockerNearMembraneSerializedValue', () => {
},
takeOutside(insideValue, expectedSerialized) {
// Test blue proxies.
// To unlock the near-membrane symbol gate first perform a has()
// trap check.
// To unlock the near-membrane symbol flag first perform a
// has() trap check.
expect(LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL in insideValue).toBe(false);
// Next, perform a get() trap call.
expect(insideValue[LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL]).toBe(
expectedSerialized
);
// Performing a get() trap call without first performing a has()
// trap check will produce `undefined`.
// Performing a get() trap call without first performing a
// has() trap check will produce `undefined`.
expect(insideValue[LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL]).toBe(
undefined
);
Expand Down Expand Up @@ -752,15 +752,15 @@ describe('@@lockerNearMembraneSerializedValue', () => {
},
takeOutside(insideValue, expectedSerialized) {
// Test blue proxies.
// To unlock the near-membrane symbol gate first perform a has()
// trap check.
// To unlock the near-membrane symbol flag first perform a
// has() trap check.
expect(LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL in insideValue).toBe(false);
// Next, perform a get() trap call.
expect(insideValue[LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL]).toBe(
expectedSerialized
);
// Performing a get() trap call without first performing a has()
// trap check will produce `undefined`.
// Performing a get() trap call without first performing a
// has() trap check will produce `undefined`.
expect(insideValue[LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL]).toBe(
undefined
);
Expand Down

0 comments on commit bd77719

Please sign in to comment.