diff --git a/react-redux-toastr/library-tests.ts b/react-redux-toastr/library-tests.ts
new file mode 100644
index 0000000000..427823b7c1
--- /dev/null
+++ b/react-redux-toastr/library-tests.ts
@@ -0,0 +1,51 @@
+///
+///
+///
+///
+import {toastr, reducer as toastrReducer, actions} from 'react-redux-toastr';
+import ReduxToastr from 'react-redux-toastr';
+import * as React from 'react';
+import * as ReactDOM from 'react-dom';
+import {createStore, combineReducers, bindActionCreators} from 'redux';
+import { Provider, connect } from 'react-redux';
+
+function test() {
+ const store = createStore(combineReducers({ toastr: toastrReducer }));
+ var toastrFactory = React.createFactory(ReduxToastr);
+ var element = toastrFactory({ timeOut: 1000, newestOnTop: false });
+ var providerFactory = React.createFactory(Provider);
+ var root = providerFactory({ store: store }, element);
+
+ class Test extends React.Component{
+ private toastr;
+ constructor() {
+ super()
+ this.toastr = bindActionCreators(actions, this.props.dispatch);
+ this.toastr.clean();
+ this.toastr.success("hi");
+ }
+
+ }
+
+
+ var TestComponent = connect(mapStateToProps, mapDispatchToProps)(Test);
+ function mapDispatchToProps(dispatch) {
+ return {
+ actions: bindActionCreators(actions, dispatch)
+ };
+ }
+
+ function mapStateToProps(state) {
+ return {};
+ }
+
+ function callback() { }
+
+ toastr.clean();
+ toastr.confirm("Test", { onOk: callback, onCancel: callback });
+ toastr.error("Error", "Error message");
+ toastr.info("Info", "Info test", { timeOut: 1000, removeOnHover: true, removeOnClick: true, onShowComplete: callback });
+ toastr.success("Test", "Test message", { component: new React.Component() });
+}
+
+test();