1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-31 13:44:28 +03:00

Apply prettier formatting

This commit is contained in:
Michael Weimann
2022-12-12 12:24:14 +01:00
parent 1cac306093
commit 526645c791
1576 changed files with 65385 additions and 62478 deletions

View File

@ -15,32 +15,24 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import {
PushRuleActionName,
TweakHighlight,
TweakName,
TweakSound,
} from "matrix-js-sdk/src/matrix";
import { PushRuleActionName, TweakHighlight, TweakName, TweakSound } from "matrix-js-sdk/src/matrix";
import { PushRuleVectorState } from "../../src/notifications";
describe("PushRuleVectorState", function() {
describe("contentRuleVectorStateKind", function() {
it("should understand normal notifications", function() {
describe("PushRuleVectorState", function () {
describe("contentRuleVectorStateKind", function () {
it("should understand normal notifications", function () {
const rule = {
actions: [
PushRuleActionName.Notify,
],
actions: [PushRuleActionName.Notify],
default: false,
enabled: false,
rule_id: '1',
rule_id: "1",
};
expect(PushRuleVectorState.contentRuleVectorStateKind(rule)).
toEqual(PushRuleVectorState.ON);
expect(PushRuleVectorState.contentRuleVectorStateKind(rule)).toEqual(PushRuleVectorState.ON);
});
it("should handle loud notifications", function() {
it("should handle loud notifications", function () {
const rule = {
actions: [
PushRuleActionName.Notify,
@ -49,14 +41,13 @@ describe("PushRuleVectorState", function() {
],
default: false,
enabled: false,
rule_id: '1',
rule_id: "1",
};
expect(PushRuleVectorState.contentRuleVectorStateKind(rule)).
toEqual(PushRuleVectorState.LOUD);
expect(PushRuleVectorState.contentRuleVectorStateKind(rule)).toEqual(PushRuleVectorState.LOUD);
});
it("should understand missing highlight.value", function() {
it("should understand missing highlight.value", function () {
const rule = {
actions: [
PushRuleActionName.Notify,
@ -65,11 +56,10 @@ describe("PushRuleVectorState", function() {
],
default: false,
enabled: false,
rule_id: '1',
rule_id: "1",
};
expect(PushRuleVectorState.contentRuleVectorStateKind(rule)).
toEqual(PushRuleVectorState.LOUD);
expect(PushRuleVectorState.contentRuleVectorStateKind(rule)).toEqual(PushRuleVectorState.LOUD);
});
});
});