liquid icon indicating copy to clipboard operation
liquid copied to clipboard

Writing tests with liquid

Open michael4reynolds opened this issue 10 years ago • 0 comments

Is it possible for you to post some examples of writing tests with liquid? I've created a working example but when I run the tests I get an empty string for frag.

    describe('Task List', () {
      it('should display list of tasks', () {
       var frag = new DivElement();

        final app = new TaskList()..todos = todos;
        injectComponent(app, frag);

        expect(frag.innerHtml, ('<div><li>...</li></div>'));
      });
    });

michael4reynolds avatar Mar 17 '15 21:03 michael4reynolds