Skip to content
Open
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
2 changes: 1 addition & 1 deletion build/ouical.js
Original file line number Diff line number Diff line change
Expand Up @@ -2525,7 +2525,7 @@ Ouical = (function() {
};

googleGenerator = function() {
return encodeURI("https://www.google.com/calendar/render" + "?action=TEMPLATE" + ("&text=" + this.title) + ("&dates=" + (this.start.format('YYYYMMDDTHHmmss')) + "Z/" + (this.end.format('YYYYMMDDTHHmmss')) + "Z") + ("&details=" + this.description) + ("&location=" + this.address) + "&sprop=&sprop=name:");
return encodeURI("https://www.google.com/calendar/render" + "?action=TEMPLATE" + ("&text=" + this.title) + ("&dates=" + (this.start.format('YYYYMMDDTHHmmss')) + "Z/") + ("" + (this.end.format('YYYYMMDDTHHmmss')) + "Z") + ("&details=" + this.description) + ("&location=" + this.address) + "&sprop=&sprop=name:");
};

yahooGenerator = function() {
Expand Down
2 changes: 1 addition & 1 deletion build/ouical.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"uglifyify": "^2.1.1",
"browserify": "~4.1.2",
"coffeelint": "~1.3.0",
"chai-webdriver": "^0.8.0",
"selenium-webdriver": "^2.41.0"
"chai-webdriver": "~0.8.0",
"selenium-webdriver": "~2.41.0"
}
}
6 changes: 4 additions & 2 deletions test/browser.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
path = require 'path'

describe 'browser', ->

it 'should work', ->
driver.get 'http://github.com'
it 'loads a page', (done) ->
driver.get("file://#{path.resolve('example/index.html')}").then(done)
22 changes: 9 additions & 13 deletions test/support/helper.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
var chai = require('chai')
, Ouical = require('../../src/ouical')
, chaiWebdriver = require('chai-webdriver')
, sw = require('selenium-webdriver');
var chai = require('chai')
, Ouical = require('../../src/ouical')
, chai_webdriver = require('chai-webdriver')
, sw = require('selenium-webdriver');

// just call should. use it in your tests
global.should = chai.should();

// make OuiCal available globally
global.Ouical = Ouical;

// enable chai webdriver
var driver = new sw.Builder()
.withCapabilities(sw.Capabilities.chrome())
.build();
.build()

chai.use(chaiWebdriver(driver));
chai.use(chai_webdriver(driver));

global.should = chai.should();
global.Ouical = Ouical;
global.driver = driver;