mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 08:25:25 +00:00
update test
This commit is contained in:
parent
e955c91323
commit
f8cec21045
@ -197,7 +197,7 @@ const msg = {
|
|||||||
dayCutTip: "Last 1 day",
|
dayCutTip: "Last 1 day",
|
||||||
weekCutTip: "Last 1 week",
|
weekCutTip: "Last 1 week",
|
||||||
monthCutTip: "Last 1 month",
|
monthCutTip: "Last 1 month",
|
||||||
serverZone: "Server Zone",
|
serverZone: "Time Zone",
|
||||||
exportImage: "Export image",
|
exportImage: "Export image",
|
||||||
object: "Object",
|
object: "Object",
|
||||||
profile: "Profile",
|
profile: "Profile",
|
||||||
|
@ -199,7 +199,7 @@ const msg = {
|
|||||||
dayCutTip: "最近1天",
|
dayCutTip: "最近1天",
|
||||||
weekCutTip: "最近1周",
|
weekCutTip: "最近1周",
|
||||||
monthCutTip: "最近1月",
|
monthCutTip: "最近1月",
|
||||||
serverZone: "服务器时区",
|
serverZone: "时区",
|
||||||
exportImage: "导出为图片",
|
exportImage: "导出为图片",
|
||||||
object: "粒度",
|
object: "粒度",
|
||||||
profile: "性能剖析",
|
profile: "性能剖析",
|
||||||
|
@ -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>
|
|
@ -14,15 +14,10 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* 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", () => {
|
it("renders props.msg when passed", () => {
|
||||||
const msg = "new message";
|
const msg = "new message";
|
||||||
const wrapper = shallowMount(Log, {
|
console.log(msg);
|
||||||
props: { msg },
|
|
||||||
});
|
|
||||||
expect(wrapper.text()).toMatch(msg);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user