版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

24 строки
688 B

  1. const $ = require('../index');
  2. const config = require('./config');
  3. const jc1 = require('./code/simple1');
  4. const jc2 = require('./code/simple2');
  5. const hc1 = require('./code/simple1.html');
  6. test('$.insertChildNode: simple code', () => {
  7. expect(()=>{
  8. const G = $('var a = 1;');
  9. G.insertChildNode('','');
  10. }).not.toThrow();
  11. })
  12. test('$.insertChildNode: this[0] is null', () => {
  13. expect(()=>{
  14. const G = $('var a = 1;');
  15. G[0] = null
  16. G.insertChildNode();
  17. }).not.toThrow();
  18. })
  19. test('$.insertChildNode: simple1 html code', () => {
  20. expect(() => {
  21. const G = $(hc1, config.html);
  22. G.insertChildNode('','');
  23. }).not.toThrow();
  24. })