在为角度7运行测试用例中获取InvalidTokenError

时间:2019-03-20 10:26:54

标签: angular unit-testing jasmine karma-runner angular7

在运行测试用例(茉莉2.6.4)时,我遇到SELECT Customer.CustomerID ,Customer.CustomerName ,COUNT(CASE WHEN DocType = 'A' THEN 1 END) AS doc_a_total ,COUNT(CASE WHEN DocType = 'B' THEN 1 END) AS doc_b_total ,COUNT(CASE WHEN DocType = 'C' THEN 1 END) AS doc_c_total ,COUNT(CASE WHEN DocType = 'A' AND user.username ='azerty' THEN 1 END) AS doc_a_made_by_azerty ,COUNT(CASE WHEN DocType = 'B' AND user.username ='azerty' THEN 1 END) AS doc_b_made_by_azerty ,COUNT(CASE WHEN DocType = 'C' AND user.username ='azerty' THEN 1 END) AS doc_c_made_by_azerty FROM ( (SELECT 'A' AS DocType, * FROM Tbl_DocA) UNION ALL (SELECT 'B' AS DocType, * FROM Tbl_DocB) UNION ALL (SELECT 'C' AS DocType, * FROM Tbl_DocC) ) AS docs JOIN Tbl_User AS user ON user.UserId = docs.UseriD JOIN Tbl_Customer AS Customer ON Customer.CustomeriD = docs.CustomeriD GROUP BY Customer.CustomerID , Customer.CustomerName 错误。 它是随机的,这就是我在Karma控制台(chrome)中得到的:

jwt_decode

这是一个常见错误,找不到任何帮助。刚升级到angular 7之后就发生了。在Angular 4中运行良好。

0 个答案:

没有答案