Skip to content

Commit

Permalink
Merge 5c25922 into 56a7489
Browse files Browse the repository at this point in the history
  • Loading branch information
Hasstrup committed Jul 24, 2018
2 parents 56a7489 + 5c25922 commit 4cb7021
Show file tree
Hide file tree
Showing 7 changed files with 930 additions and 168 deletions.
3 changes: 3 additions & 0 deletions app/views/includes/foot.jade
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ script(type='text/javascript', src='https://code.angularjs.org/1.1.5/angular-coo
// MomentJS
script(type='text/javascript', src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js')

//EmojiOne
script(type='text/javascript', src='https://cdnjs.cloudflare.com/ajax/libs/emojionearea/3.4.1/emojionearea.min.js')

// Cloudinary
script(type='text/javascript', src='/lib/cloudinary_ng/js/angular.cloudinary.js')
script(type='text/javascript', src="/lib/ng-file-upload/ng-file-upload.js")
Expand Down
1 change: 1 addition & 0 deletions app/views/includes/head.jade
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ head
link(href='https://fonts.googleapis.com/css?family=Lobster', rel='stylesheet', type='text/css')
link(rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous")
link(href='https://cdnjs.cloudflare.com/ajax/libs/intro.js/2.9.3/introjs.min.css', rel='stylesheet', type='text/css')
link(href='https://cdnjs.cloudflare.com/ajax/libs/emojionearea/3.4.1/emojionearea.min.css', rel='stylesheet', type='text/css')
link(href="https://fonts.googleapis.com/icon?family=Material+Icons", rel="stylesheet")

meta(property='fb:app_id', content='APP_ID')
Expand Down
3 changes: 2 additions & 1 deletion frontend-test/angular/game-controller.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/* eslint prefer-arrow-callback: 0, func-names: 0, no-undef: 0 */
describe('Controller: Game(Chat)', function () {
let $scope;
Expand Down Expand Up @@ -36,8 +37,8 @@ describe('Controller: Game(Chat)', function () {
}));

it('should change the scope MessageInput on submit', function () {
$scope.MessageInput = 'This is a test thing';
spyOn(game, 'dispatchMessage');
$scope.MessageInput = 'Hello world';
$scope.SendMessage();
expect($scope.MessageInput).toEqual('');
expect(game.dispatchMessage).toHaveBeenCalled();
Expand Down
Loading

0 comments on commit 4cb7021

Please sign in to comment.