Is version v1.4.1 outdated ?

25 views
Skip to first unread message

Yogesh Agrawal

unread,
Feb 1, 2014, 3:16:23 PM2/1/14
to zomb...@googlegroups.com
I have written a simple test for checking "content" div. Test in passed in zombie's version "2.0.0-alpha25" but not in "1.4.1"...

test.js

var assert = require('assert');
var Browser = require('zombie');
 
var browser = new Browser();
 
describe("Index Page", function(){
    it("contains #content div", function(done){
        browser.visit("http://localhost:8000/index.html", function(){
            assert.ok(browser.success);
            assert.ok(browser.query("#content"))
            done();
        });
    });
});

Index.html

<!DOCTYPE html>
<html>
  <head>
    <title>Hello World</title>
      </head>
  <body>
    <div id="content">
    </div>
  </body>
</html>
 
Regards,
Yogesh

Assaf Arkin

unread,
Feb 2, 2014, 12:53:45 PM2/2/14
to Yogesh Agrawal, zomb...@googlegroups.com
1.4.1 has not been updated in a while. 2.0 is much more recent, but not yet well documented.

--
You received this message because you are subscribed to the Google Groups "zombie.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zombie-js+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

–––––

Subscribe to Weekend Reading, a newsletter about design, code, startup life and the occasional odd

Reply all
Reply to author
Forward
0 new messages