Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions app/app.js
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
// source goes here
var app = {
// this is the entry point for your app.
init: function() {
console.log("hello from app!");
}
};

module.exports = app;
3 changes: 2 additions & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ console.log("If you are reading this, your Javascript runtime is all up and runn
// dont put any source in this file, this is just an entry point for the app.
// you can require things in.
require('./styles.css');
require('./app.js');
var app = require('./app.js');
app.init();
9 changes: 9 additions & 0 deletions spec/app-spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
var app = require("../app/app");

describe("app", function() {
describe("#init", function() {
it("should be defined", function() {
expect(app.init).toBeDefined();
});
});
});
2 changes: 0 additions & 2 deletions spec/example-spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require('../app/index');

describe("Tautologies in general", function() {
it("make very little sense", function() {
expect(true).toBe(true);
Expand Down