const globalSetup = require("../global-setup");
const app = globalSetup.app;
const chai = require("chai");
const expect = chai.expect;

describe("Newsfeed module", function () {

	this.timeout(20000);

	beforeEach(function (done) {
		app.start().then(function() { done(); } );
	});

	afterEach(function (done) {
		app.stop().then(function() { done(); });
	});

	describe("Default configuration", function() {

		before(function() {
			// Set config sample for use in test
			process.env.MM_CONFIG_FILE = "tests/configs/modules/newsfeed/default.js";
		});

		it("Check here", function () {
			return app.client.waitUntilTextExists(".newsfeed .small", "New York Times, in day:", 10000);
		});

	});

});

@@ -429,48 +429,8 @@
 ) %7B%0A
-%09%09%09// Set config sample for use in test%0A
 %09%09%09p
@@ -519,18 +519,27 @@
 it(%22
-Check here
+show title newsfeed
 %22, f
@@ -617,48 +617,65 @@
 %22, %22
-New York Times, in day:%22, 10000)
+Rodrigo Ramirez Blog%22, 10000).should.be.fulfilled
 ;%0A%09%09%7D);%0A
 %0A%09%7D)
@@ -670,19 +670,17 @@
 ;%0A%09%09%7D);%0A
-%0A
 %09%7D);%0A
-%0A
 %7D);%0A

Add first test for newsfeed module.