Commit f0acec4ac265a34542a86a0b6e6fced13a3296a2
1 parent
f50713f3
Exists in
master
Refatorando os testes
Showing
5 changed files
with
3 additions
and
11 deletions
Show diff stats
test/views/barra.ejs
| ... | ... | @@ -1 +0,0 @@ |
| 1 | -include ../../app/static/barra-brasil.js |
test/views/index.ejs
| ... | ... | @@ -1 +0,0 @@ |
| 1 | -include ../../app/templates/exemplo.html |
test/zombie-test.js
| ... | ... | @@ -6,24 +6,16 @@ describe("Testes de conteúdo de HTML da barra", function() { |
| 6 | 6 | var server, browser, barraUrl; |
| 7 | 7 | barraUrl = "http://localhost:3000/"; |
| 8 | 8 | before(function() { |
| 9 | - // before ALL the tests, start our node server (on a test port, 3001) | |
| 10 | - | |
| 11 | 9 | server = app.listen(3000); |
| 12 | 10 | }); |
| 13 | 11 | |
| 14 | 12 | beforeEach(function() { |
| 15 | - // before EACH test, create a new zombie browser | |
| 16 | - // | |
| 17 | - // some useful options when things go wrong: | |
| 18 | - // debug: true = outputs debug information for zombie | |
| 19 | - // waitDuration: 500 = will only wait 500 milliseconds | |
| 20 | - // for the page to load before moving on | |
| 21 | 13 | browser = new Browser(); |
| 22 | 14 | browser.runScripts = true; |
| 23 | 15 | }); |
| 24 | 16 | |
| 25 | 17 | after(function() { |
| 26 | - // after ALL the tests, close the server | |
| 18 | + // depois dos testes fechar o servidor | |
| 27 | 19 | server.close(); |
| 28 | 20 | }); |
| 29 | 21 | ... | ... |
| ... | ... | @@ -0,0 +1 @@ |
| 1 | +include ../app/static/barra-brasil.js | ... | ... |
| ... | ... | @@ -0,0 +1 @@ |
| 1 | +include ../app/templates/exemplo.html | ... | ... |