File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ describe("DataAPI Request", function(){
471
471
} ) ; ;
472
472
api . request ( 'GET' , '/endpoint-test' ) ;
473
473
474
- expect ( url ) . toMatch ( new RegExp ( dataApiBaseUrl + '/v6 /endpoint-test\\?_=\\d+' ) ) ;
474
+ expect ( url ) . toMatch ( new RegExp ( dataApiBaseUrl + '/v7 /endpoint-test\\?_=\\d+' ) ) ;
475
475
} ) ;
476
476
477
477
it ( "should be set timeout property if the timeout option is set" , function ( ) {
@@ -500,7 +500,7 @@ describe("DataAPI Request", function(){
500
500
} ) ; ;
501
501
api . request ( 'GET' , '/endpoint-test' ) ;
502
502
503
- expect ( url ) . toEqual ( dataApiBaseUrl + '/v6 /endpoint-test?format=mpac' ) ;
503
+ expect ( url ) . toEqual ( dataApiBaseUrl + '/v7 /endpoint-test?format=mpac' ) ;
504
504
} ) ;
505
505
506
506
it ( "should be set \"X-MT-Authorization\" request header if an accessToke is already set up" , function ( ) {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ var path = require("path"),
4
4
lib = path . join ( base , "node-lib" ) ;
5
5
6
6
global . MT = {
7
- DataAPI : require ( path . join ( lib , "bootstrap" ) ) [ "v6 " ]
7
+ DataAPI : require ( path . join ( lib , "bootstrap" ) ) [ "v7 " ]
8
8
} ;
9
9
10
10
global . sinon = require ( path . join ( base , "bower_components" , "sinon" ) ) ;
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ var DataAPI = function(options) {
111
111
* @private
112
112
* @type Number
113
113
*/
114
- DataAPI . version = 6 ;
114
+ DataAPI . version = 7 ;
115
115
116
116
/**
117
117
* The key of access token of this api object.
Original file line number Diff line number Diff line change 1
1
/*
2
- * Movable Type DataAPI SDK for JavaScript v6
2
+ * Movable Type DataAPI SDK for JavaScript v7
3
3
* https://github.com/movabletype/mt-data-api-sdk-js
4
4
* Copyright (c) Six Apart Ltd.
5
5
* This program is distributed under the terms of the MIT license.
You can’t perform that action at this time.
0 commit comments