Jelajahi Sumber

expost listview. tests for exposure

Adam Shaw 8 tahun lalu
induk
melakukan
468cedaccc
2 mengubah file dengan 17 tambahan dan 1 penghapusan
  1. 1 1
      src/list/ListView.js
  2. 16 0
      tests/view-type/exposed-classes.js

+ 1 - 1
src/list/ListView.js

@@ -2,7 +2,7 @@
 /*
 Responsible for the scroller, and forwarding event-related actions into the "grid".
 */
-var ListView = View.extend({
+var ListView = FC.ListView = View.extend({
 
 	segSelector: '.fc-list-item', // which elements accept event actions
 	//eventRendererClass is below

+ 16 - 0
tests/view-type/exposed-classes.js

@@ -0,0 +1,16 @@
+
+describe('internal View/Grid classes', function() {
+
+	it('are exposed', function() {
+		var FC = $.fullCalendar;
+
+		expect(typeof FC.AgendaView).toBe('function');
+		expect(typeof FC.BasicView).toBe('function');
+		expect(typeof FC.MonthView).toBe('function');
+		expect(typeof FC.ListView).toBe('function');
+
+		expect(typeof FC.DayGrid).toBe('function');
+		expect(typeof FC.TimeGrid).toBe('function');
+	});
+
+});