mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-07 16:22:18 +02:00
[ts-migrate][client] Init tsconfig.json file
Co-authored-by: ts-migrate <>
This commit is contained in:
parent
1560b07f36
commit
36e7a61007
|
@ -4,7 +4,7 @@
|
|||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import ParsedMessage from "../../../client/components/ParsedMessage.vue";
|
||||
|
||||
export default {
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
"use strict";
|
||||
|
||||
// @ts-expect-error ts-migrate(2451) FIXME: Cannot redeclare block-scoped variable 'expect'.
|
||||
const expect = require("chai").expect;
|
||||
const constants = require("../../../client/js/constants");
|
||||
import {expect} from "chai";
|
||||
import constants from "../../../client/js/constants";
|
||||
import {describe} from "mocha";
|
||||
|
||||
// @ts-expect-error ts-migrate(2582) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message
|
||||
describe("client-side constants", function () {
|
||||
// @ts-expect-error ts-migrate(2582) FIXME: Cannot find name 'describe'. Do you need to instal... Remove this comment to see the full error message
|
||||
describe(".colorCodeMap", function () {
|
||||
|
@ -15,7 +14,6 @@ describe("client-side constants", function () {
|
|||
|
||||
// @ts-expect-error ts-migrate(2582) FIXME: Cannot find name 'it'. Do you need to install type... Remove this comment to see the full error message
|
||||
it("should be made of pairs of strings", function () {
|
||||
// @ts-expect-error ts-migrate(7031) FIXME: Binding element 'code' implicitly has an 'any' typ... Remove this comment to see the full error message
|
||||
constants.colorCodeMap.forEach(([code, name]) => {
|
||||
expect(code)
|
||||
.to.be.a("string")
|
||||
|
|
Loading…
Reference in a new issue