update test

This commit is contained in:
Qiuxia Fan 2022-04-06 10:27:54 +08:00
parent e955c91323
commit f8cec21045
4 changed files with 4 additions and 33 deletions

View File

@ -197,7 +197,7 @@ const msg = {
dayCutTip: "Last 1 day",
weekCutTip: "Last 1 week",
monthCutTip: "Last 1 month",
serverZone: "Server Zone",
serverZone: "Time Zone",
exportImage: "Export image",
object: "Object",
profile: "Profile",

View File

@ -199,7 +199,7 @@ const msg = {
dayCutTip: "最近1天",
weekCutTip: "最近1周",
monthCutTip: "最近1月",
serverZone: "服务器时区",
serverZone: "时区",
exportImage: "导出为图片",
object: "粒度",
profile: "性能剖析",

View File

@ -1,24 +0,0 @@
<!-- Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. -->
<template>
<div class="about">{{ props.msg }}</div>
</template>
<script lang="ts" setup>
import { useAppStoreWithOut } from "@/store/modules/app";
const appStore = useAppStoreWithOut();
appStore.setPageTitle("Log");
/*global defineProps */
const props = defineProps({
msg: String,
});
</script>

View File

@ -14,15 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { shallowMount } from "@vue/test-utils";
import Log from "@/views/Log.vue";
describe("Log.vue", () => {
describe("My First Test", () => {
it("renders props.msg when passed", () => {
const msg = "new message";
const wrapper = shallowMount(Log, {
props: { msg },
});
expect(wrapper.text()).toMatch(msg);
console.log(msg);
});
});