如果未选择任何内容,是否可以更改选择选择器的消息.目前,"没有选择"是写的.我知道,noneSelectedText属性包含该消息.
但我不想在bootstrap.select.js中更改它.我想动态地改变它,因为我在不同的位置使用不同的选择选择器.
编辑:
谢谢,它有效:)
我目前正在尝试获取“超级测试”请求的响应对象。
\n如果我在没有等待的情况下调用 get,我会得到一个 httpCode 200,但没有正文:
\nimport { Test, TestingModule } from '@nestjs/testing';\n\nimport { AuthModule } from './auth.module';\nimport { INestApplication } from '@nestjs/common';\nimport * as request from 'supertest';\n\ndescribe('AuthService', () => {\n let app: INestApplication;\n beforeAll(async () => {\n const module: TestingModule = await Test.createTestingModule({\n providers: [AuthModule]\n}).compile();\napp = module.createNestApplication();\nawait app.init();\n});\n\nit('should be defined', async () => {\nconst res = request(app.getHttpServer())\n .get('/')\n .expect(200);\n\n});\n\nafterAll(async () => {\n app.close();\n});\n});\nRun Code Online (Sandbox Code Playgroud)\nJest 给了我以下输出。但我无法引用 res.body
\n AuthService\n\xe2\x88\x9a should be defined (5ms)\n\nTest Suites: 1 passed, 1 total\nTests: …Run Code Online (Sandbox Code Playgroud)