How to initialize private property of a class for a test

前端 未结 0 740
别跟我提以往
别跟我提以往 2021-01-07 20:21

I\'m trying to write a test using JEST to a class I wrote with static properties that resembles the following:

class DataManager {
    static #data = null;

          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题